cppcheck analysis of ghostscript_8.71~dfsg-3.dsc
- ./base/gp_unix.c:68 [error] - Dangerous usage of 'buff' (strncpy doesn't always 0-terminate it)
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'A4'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_PTRS_ARE_SIGNED'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_SIZEOF_LONG_LONG'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'BSD4_2'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'FRAC_MAP_INTERPOLATE'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'GS_CLIENT_COLOR_MAX_COMPONENTS'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'GX_COLOR_INDEX_TYPE'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'M_SYS3'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'M_SYSV'.
- ./base/gdevwdib.c:219 [error] - Invalid number of character ({) when these macros are defined: 'OS2;__IBMC__'.
- ./base/gdevwts.c:298 [error] - Resource leak: f
- ./base/genconf.c:675 [error] - Memory leak: cname
- ./base/genconf.c:675 [error] - Memory leak: cont
- ./base/gp_mswin.c:621 [possible error] - Buffer access out-of-bounds: fname
- ./base/gp_mswin.c:381 [possible error] - Resource leak: f
- ./base/gp_os2.c:545 [possible error] - Resource leak: f
- ./base/gp_unifs.c:101 [possible error] - Resource leak: file
- ./base/gsiomacres.c:266 [error] - Memory leak: types
- ./base/gsiomacres.c:266 [error] - Memory leak: number
- ./base/gsiomacres.c:305 [error] - Resource leak: in
- ./base/gsiomacres.c:387 [error] - Dangerous usage of 'filename' (strncpy doesn't always 0-terminate it)
- ./base/rinkj/rinkj-epson870.c:509 [error] - Array 'plane_offsets[6]' index 6 out of bounds
- ./base/rinkj/rinkj-epson870.c:900 [possible error] - Memory leak: thisbuf
- ./base/rinkj/rinkj-epson870.c:974 [possible error] - Memory leak: compress_buf
- ./base/sfxfd.c:337 [error] - Uninitialized variable: status
- ./contrib/gomni.c:1384 [possible error] - Array 'argbColor[1]' index 1 out of bounds
- ./contrib/gomni.c:1385 [possible error] - Array 'argbColor[1]' index 1 out of bounds
- ./contrib/gomni.c:1386 [possible error] - Array 'argbColor[1]' index 1 out of bounds
- ./contrib/gomni.c:1390 [possible error] - Array 'argbColor[1]' index 1 out of bounds
- ./contrib/gomni.c:1391 [possible error] - Array 'argbColor[1]' index 1 out of bounds
- ./contrib/gomni.c:1392 [possible error] - Array 'argbColor[1]' index 1 out of bounds
- ./contrib/pcl3/src/pcl3opts.c:760 [error] - Memory leak: buffer
- ./expat/xmlwf/readfilemap.c:61 [error] - Resource leak: fd
- ./expat/xmlwf/xmlfile.c:196 [possible error] - Resource leak: fd
- ./expat/xmlwf/xmlwf.c:857 [possible error] - Memory leak: outName
- ./ijs/ijs_server_example.c:227 [error] - Uninitialized variable: left
- ./imdi/imdi_tab.c:215 [error] - Memory leak: it
- ./imdi/imdi_tab.c:106 [error] - Null pointer dereference
- ./jbig2dec/jbig2_image_png.c:58 [error] - Resource leak: out
- ./jbig2dec/jbig2dec.c:431 [possible error] - Resource leak: f
- ./jpeg/cjpeg.c:606 [possible error] - Resource leak: input_file
- ./jpeg/cjpeg.c:606 [possible error] - Resource leak: output_file
- ./jpeg/djpeg.c:616 [possible error] - Resource leak: input_file
- ./jpeg/djpeg.c:616 [possible error] - Resource leak: output_file
- ./jpeg/jpegtran.c:504 [possible error] - Resource leak: input_file
- ./jpeg/jpegtran.c:504 [possible error] - Resource leak: output_file
- ./jpeg/wrjpgcom.c:583 [error] - Memory leak: comment_arg
- ./jpeg/wrjpgcom.c:583 [possible error] - Resource leak: comment_file
- ./psi/igc.c:1001 [possible error] - Array 'entries[1]' index 1 out of bounds
- ./psi/ziodevs.c:167 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./psi/ziodevs.c:167 [error] - Invalid number of character ({) when these macros are defined: 'DEBUG'.
- ./psi/ziodevs.c:167 [error] - Invalid number of character ({) when these macros are defined: '__TURBOC__'.
- ./psi/ziodevs.c:167 [error] - Invalid number of character ({) when these macros are defined: 'arch_is_big_endian'.
- ./psi/ziodevs.c:167 [error] - Invalid number of character ({) when these macros are defined: 'iodev_proc_fopen'.
- ./psi/ziodevs.c:167 [error] - Invalid number of character ({) when these macros are defined: 'r_type'.
- ./tiff/contrib/dbs/tiff-grayscale.c:89 [error] - Memory leak: gray
- ./tiff/contrib/dbs/tiff-palette.c:222 [error] - Memory leak: red
- ./tiff/contrib/dbs/tiff-palette.c:222 [error] - Memory leak: green
- ./tiff/contrib/dbs/tiff-palette.c:222 [error] - Memory leak: blue
- ./tiff/contrib/iptcutil/iptcutil.c:297 [error] - Memory leak: str
- ./tiff/contrib/iptcutil/iptcutil.c:570 [possible error] - Resource leak: ifile
- ./tiff/contrib/iptcutil/iptcutil.c:570 [possible error] - Resource leak: ofile
- ./tiff/contrib/stream/tiffstream.cpp:102 [error] - Uninitialized variable: istr
- ./tiff/contrib/stream/tiffstream.cpp:117 [error] - Uninitialized variable: ostr
- ./tiff/tools/ras2tiff.c:93 [error] - Resource leak: in
- ./tiff/tools/raw2tiff.c:207 [error] - Resource leak: fd
- ./toolbin/jpxtopdf.c:246 [error] - Resource leak: in
- ./toolbin/tests/fuzzy.c:158 [error] - Resource leak: f
- ./toolbin/tests/fuzzy.c:162 [error] - Memory leak: pnm
- ./toolbin/tests/fuzzy.c:779 [possible error] - Memory leak: out_fn
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:48:33 +0000, based on results by cppcheck 1.41-modif