cppcheck analysis of r-base_2.13.0~20110407-1.dsc
- ./src/extra/graphapp/array.c:101 [error] - Common realloc mistake: "block" nulled but not freed upon failure
- ./src/extra/graphapp/array.c:150 [error] - Common realloc mistake: "block" nulled but not freed upon failure
- ./src/extra/tre/xmalloc.c:122 [error] - Data is allocated but not initialized: new
- ./src/extra/xz/check/crc32_tablegen.c:31 [error] - Array 'crc32_table[8]' index -1 out of bounds
- ./src/extra/xz/check/crc64_tablegen.c:30 [error] - Array 'crc64_table[4]' index -1 out of bounds
- ./src/extra/zlib/gzio.c:173 [error] - Memory leak: s.path
- ./src/gnuwin32/bitmap/rbitmap.c:289 [error] - Uninitialized variable: buffer
- ./src/gnuwin32/editor.c:127 [error] - Common realloc mistake: "buffer" nulled but not freed upon failure
- ./src/gnuwin32/editor.c:262 [error] - Common realloc mistake: "linebuf" nulled but not freed upon failure
- ./src/gnuwin32/rui.c:1377 [error] - Common realloc mistake: "usermenus" nulled but not freed upon failure
- ./src/gnuwin32/rui.c:1449 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./src/gnuwin32/rui.c:1289 [error] - Memory leak: q
- ./src/gnuwin32/rui.c:1289 [error] - Memory leak: r
- ./src/gnuwin32/run.c:62 [error] - Memory leak: s
- ./src/library/grDevices/src/devPicTeX.c:506 [error] - Uninitialized variable: i
- ./src/library/grDevices/src/devWindows.c:3701 [error] - Dangerous usage of 'type' (strncpy doesn't always 0-terminate it)
- ./src/main/connections.c:3334 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: ''.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'EOVERFLOW'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_CONFIG_H'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_GETTIMEOFDAY'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_LOCALE_H'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_LOCALE_H;HAVE_WCSFTIME;HAVE_WCSTOD'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_PUTENV'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_PUTENV_UNSET'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_PUTENV_UNSET2'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_SETENV'.
- ./src/main/datetime.c:134 [error] - Invalid number of character (() when these macros are defined: 'HAVE_SYS_TIME_H'.
- ./src/main/dcf.c:127 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/main/dcf.c:180 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/main/dounzip.c:944 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 945
- ./src/main/dounzip.c:1521 [error] - Possible null pointer dereference: pfile_in_zip_read_info - otherwise it is redundant to check if pfile_in_zip_read_info is null at line 1523
- ./src/main/envir.c:3467 [error] - Uninitialized variable: newsize
- ./src/main/envir.c:3469 [error] - Uninitialized variable: newsize
- ./src/main/gram.c:1765 [error] - Memory leak: yyptr
- ./src/main/gramLatex.c:1416 [error] - Memory leak: yyptr
- ./src/main/gramRd.c:2221 [error] - Memory leak: yyptr
- ./src/main/qsort-body.c:107 [error] - Uninitialized variable: il
- ./src/main/qsort-body.c:108 [error] - Uninitialized variable: iu
- ./src/main/rlocale.c:247 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:248 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:249 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:250 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:251 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:252 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:253 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:254 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:255 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:256 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/rlocale.c:257 [error] - Dangerous usage of 'fromcode' (strncpy doesn't always 0-terminate it)
- ./src/main/scan.c:1534 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./src/modules/X11/dataentry.c:2377 [error] - Array 'menupanes[4]' index 4 out of bounds
- ./src/modules/X11/rbitmap.c:342 [error] - Uninitialized variable: buffer
- ./src/modules/X11/rbitmap.c:345 [error] - Uninitialized variable: buffer
- ./src/modules/X11/rotated.c:862 [error] - Memory leak: item
- ./src/modules/X11/rotated.c:1466 [error] - Memory leak: xp_in
- ./src/modules/X11/rotated.c:2050 [error] - Memory leak: item
- ./src/modules/X11/rotated.c:2405 [error] - Memory leak: xp_in
- ./src/modules/X11/rotated.c:926 [error] - Memory leak: item.corners_x
- ./src/modules/X11/rotated.c:935 [error] - Memory leak: item.corners_y
- ./src/modules/X11/rotated.c:2112 [error] - Memory leak: item.corners_x
- ./src/modules/X11/rotated.c:2121 [error] - Memory leak: item.corners_y
- ./src/nmath/bessel_y.c:72 [error] - Memory leak: by
- ./src/unix/hpdlfcn.c:159 [error] - Memory leak: entry
- ./src/unix/sys-std.c:799 [error] - Invalid deallocation
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, 11 Apr 2011 06:59:31 +0000, based on results by cppcheck 1.46