cppcheck analysis of gnulib_20110412+stable-1.dsc
- ./lib/alloca.c:102 [error] - Dangerous assignment - function parameter takes the address of a local auto-variable. Local auto-variables are reserved from the stack. And the stack is freed when the function ends. So the pointer to a local variable is invalid after the function ends.
- ./lib/closein.c:90 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./lib/getaddrinfo.c:332 [error] - Memory leak: storage
- ./lib/getaddrinfo.c:333 [error] - Memory leak: storage
- ./lib/popen-safer.c:50 [error] - Resource leak: fd
- ./lib/regcomp.c:2796 [error] - Uninitialized variable: symb_table
- ./lib/regex-quote.c:107 [error] - Buffer access out-of-bounds: bre_special
- ./lib/regexec.c:3909 [error] - Uninitialized variable: extra
- ./lib/sqrtl.c:41 [error] - Passing value -1 to sqrt() leads to undefined result
- ./lib/unicase/u8-casefold.c:54 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unicase/u8-casefold.c:73 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unicase/u8-tolower.c:67 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unicase/u8-tolower.c:86 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unicase/u8-totitle.c:54 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unicase/u8-totitle.c:73 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unicase/u8-toupper.c:67 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unicase/u8-toupper.c:86 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/u8-possible-linebreaks.c:190 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/u8-possible-linebreaks.c:209 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/u8-width-linebreaks.c:135 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/u8-width-linebreaks.c:154 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/ulc-possible-linebreaks.c:143 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/ulc-possible-linebreaks.c:162 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/ulc-width-linebreaks.c:161 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/unilbrk/ulc-width-linebreaks.c:180 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/uniwbrk/u8-wordbreaks.c:57 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/uniwbrk/u8-wordbreaks.c:76 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/uniwbrk/ulc-wordbreaks.c:134 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./lib/uniwbrk/ulc-wordbreaks.c:153 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./tests/test-calloc-gnu.c:30 [error] - Allocation with calloc, if doesn't release it.
- ./tests/test-dprintf-posix2.c:89 [error] - Memory leak: memory
- ./tests/test-fbufmode.c:71 [error] - Resource leak: fp
- ./tests/test-fflush.c:48 [error] - Resource leak: f
- ./tests/test-fflush2.c:53 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./tests/test-fflush2.c:94 [error] - fflush() called on input stream "stdin" may result in undefined behaviour
- ./tests/test-fprintf-posix3.c:88 [error] - Memory leak: memory
- ./tests/test-fpurge.c:133 [error] - Resource leak: fp
- ./tests/test-freadahead.c:36 [error] - Memory leak: buf
- ./tests/test-freadptr.c:93 [error] - Memory leak: buf
- ./tests/test-freadptr2.c:46 [error] - Memory leak: buf
- ./tests/test-freadseek.c:92 [error] - Memory leak: buf1
- ./tests/test-freadseek.c:92 [error] - Memory leak: buf3
- ./tests/test-freadseek.c:92 [error] - Memory leak: buf5
- ./tests/test-freadseek.c:92 [error] - Memory leak: buf7
- ./tests/test-ftell3.c:77 [error] - Resource leak: fp
- ./tests/test-ftello3.c:77 [error] - Resource leak: fp
- ./tests/test-getdelim.c:48 [error] - Resource leak: f
- ./tests/test-getline.c:48 [error] - Resource leak: f
- ./tests/test-iconv-utf.c:64 [error] - Buffer access out-of-bounds: buf
- ./tests/test-iconv-utf.c:95 [error] - Buffer access out-of-bounds: buf
- ./tests/test-iconv-utf.c:126 [error] - Buffer access out-of-bounds: buf
- ./tests/test-iconv-utf.c:157 [error] - Buffer access out-of-bounds: buf
- ./tests/test-inttostr.c:87 [error] - Memory leak: b
- ./tests/test-passfd.c:116 [error] - Resource leak: fdnull
- ./tests/test-setlocale1.c:58 [error] - Memory leak: name1
- ./tests/test-setlocale1.c:58 [error] - Memory leak: name2
- ./tests/test-strnlen.c:67 [error] - Memory leak: page_boundary
- ./tests/test-strstr.c:274 [error] - Memory leak: haystack
- ./tests/test-userspec.c:115 [error] - Uninitialized variable: gr
- ./tests/unigbrk/test-uc-is-grapheme-break.c:156 [error] - Resource leak: stream
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sat, 16 Apr 2011 06:58:06 +0000, based on results by cppcheck 1.46