cppcheck analysis of uclibc_0.9.30.2-1.dsc
- ./extra/locale/gen_collate.c:2139 [error] - Memory leak: p
- ./extra/locale/lmmtolso.c:61 [error] - Resource leak: lso
- ./extra/locale/programs/locale.c:240 [error] - Undefined behaviour: loc is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./extra/locale/programs/locale.c:248 [error] - Undefined behaviour: loc is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./libc/inet/rpc/getrpcent.c:95 [error] - Memory leak: d
- ./libc/inet/rpc/getrpcent.c:119 [error] - Memory leak: d
- ./libc/inet/rpc/getrpcent.c:158 [error] - Memory leak: d
- ./libc/inet/rpc/rpc_thread.c:98 [error] - Memory leak: tvp
- ./libc/inet/rpc/rpc_thread.c:109 [error] - Memory leak: tvp
- ./libc/inet/rpc/rpc_thread.c:120 [error] - Memory leak: tvp
- ./libc/inet/rpc/rpc_thread.c:131 [error] - Memory leak: tvp
- ./libc/inet/rpc/svc_simple.c:175 [error] - Memory leak: buf
- ./libc/misc/regex/regcomp.c:2732 [error] - Uninitialized variable: symb_table
- ./libc/misc/regex/regexec.c:3846 [error] - Uninitialized variable: extra
- ./libc/misc/time/time.c:675 [error] - Uninitialized variable: oday
- ./libc/misc/time/time.c:2134 [error] - Uninitialized variable: wday
- ./libc/misc/wordexp/wordexp.c:201 [error] - Memory leak: word
- ./libc/misc/wordexp/wordexp.c:419 [error] - Memory leak: matching_word
- ./libc/misc/wordexp/wordexp.c:1420 [error] - Memory leak: newword
- ./libc/pwd_grp/pwd_grp.c:702 [error] - Possible null pointer dereference: group_list - otherwise it is redundant to check if group_list is null at line 703
- ./libc/stdlib/__uc_malloc.c:47 [error] - Memory leak: p
- ./libc/stdlib/random.c:210 [error] - Array index -1 is out of bounds
- ./libc/stdlib/random.c:229 [error] - Array index -1 is out of bounds
- ./libc/sysdeps/linux/common/getcwd.c:110 [error] - Resource leak: dp
- ./libc/sysdeps/linux/common/setgroups.c:52 [error] - Possible null pointer dereference: kernel_groups
- ./libpthread/linuxthreads.old/manager.c:443 [error] - Data is allocated but not initialized: new_thread_bottom
- ./test/locale/collate-test.c:69 [error] - Common realloc mistake: "strings" nulled but not freed upon failure
- ./test/locale/tst-numeric.c:73 [error] - Memory leak: s
- ./test/locale/xfrm-test.c:71 [error] - Common realloc mistake: "strings" nulled but not freed upon failure
- ./test/malloc/malloc-standard-alignment.c:37 [error] - Common realloc mistake: "line" nulled but not freed upon failure
- ./test/malloc/malloc-standard-alignment.c:41 [error] - Memory leak: reg
- ./test/malloc/mallocbug.c:66 [error] - Memory leak: dummy0
- ./test/malloc/mallocbug.c:66 [error] - Memory leak: dummy1
- ./test/malloc/mallocbug.c:66 [error] - Memory leak: fill_info_table1
- ./test/malloc/mallocbug.c:66 [error] - Memory leak: over_top
- ./test/malloc/mallocbug.c:66 [error] - Memory leak: over_top_dup
- ./test/malloc/realloc-can-shrink.c:12 [error] - Common realloc mistake: "ptr" nulled but not freed upon failure
- ./test/malloc/realloc-can-shrink.c:13 [error] - Common realloc mistake: "ptr" nulled but not freed upon failure
- ./test/malloc/realloc0.c:10 [error] - Memory leak: ptr
- ./test/malloc/testmalloc.c:31 [error] - The given size 13 is mismatching
- ./test/malloc/tst-malloc.c:56 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./test/malloc/tst-malloc.c:68 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./test/malloc/tst-malloc.c:51 [error] - Memory leak: p
- ./test/malloc/tst-mcheck.c:52 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./test/malloc/tst-mcheck.c:64 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./test/malloc/tst-mcheck.c:48 [error] - Memory leak: p
- ./test/misc/popen.c:40 [error] - Resource leak: f
- ./test/pthread/ex4.c:91 [error] - Memory leak: res
- ./test/regex/tst-regex2.c:62 [error] - Memory leak: buf
- ./test/stat/memcmp-stat.c:87 [error] - Resource leak: fd
- ./test/string/testcopy.c:107 [error] - Memory leak: rand_mem
- ./test/string/testcopy.c:107 [error] - Memory leak: lo_around
- ./test/string/testcopy.c:107 [error] - Memory leak: hi_around
- ./test/string/tester.c:325 [error] - Buffer access out-of-bounds: one
- ./test/string/tester.c:329 [error] - Buffer access out-of-bounds: one
- ./test/string/tester.c:335 [error] - Buffer access out-of-bounds: one
- ./test/string/tester.c:340 [error] - Buffer access out-of-bounds: one
- ./test/string/tester.c:343 [error] - Buffer access out-of-bounds: one
- ./test/string/tester.c:346 [error] - Buffer access out-of-bounds: one
- ./test/string/tester.c:532 [error] - Uninitialized variable: buf
- ./test/string/tester.c:555 [error] - Uninitialized variable: buf
- ./test/string/tester.c:584 [error] - Uninitialized variable: buf
- ./test/string/tester.c:616 [error] - Uninitialized variable: buf
- ./test/string/tester.c:645 [error] - Uninitialized variable: buf
- ./test/string/tester.c:693 [error] - Uninitialized variable: buf
- ./test/time/tst-strftime.c:40 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 20 Dec 2010 21:19:31 +0000, based on results by cppcheck 1.46