cppcheck analysis of gdcm_2.0.16-2.dsc
- ./Applications/Cxx/deflate.cxx:115 [error] - Resource leak: input
- ./Applications/Cxx/deflate.cxx:115 [error] - Resource leak: output
- ./Examples/Cxx/GenAllVR.cxx:104 [error] - Array 'ss[10]' index 10 out of bounds
- ./Source/MediaStorageAndFileFormat/gdcmImageCodec.cxx:294 [error] - Memory leak: dummy_buffer
- ./Source/MediaStorageAndFileFormat/gdcmPNMCodec.cxx:180 [error] - Memory leak: buf
- ./Source/MediaStorageAndFileFormat/gdcmRLECodec.cxx:360 [error] - Memory leak: buffer
- ./Source/MediaStorageAndFileFormat/gdcmRLECodec.cxx:360 [error] - Memory leak: bufferrgb
- ./Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestDataElement.cxx:26 [error] - Dangerous usage of c_str()
- ./Utilities/Tools/upsidedown.c:31 [error] - Memory leak: buffer
- ./Utilities/gdcmexpat/lib/xmlparse.c:2456 [error] - Uninitialized variable: buf
- ./Utilities/gdcmexpat/xmlwf/readfilemap.c:53 [error] - Resource leak: fd
- ./Utilities/gdcmopenjpeg/codec/convert.c:134 [error] - Resource leak: IN
- ./Utilities/gdcmopenjpeg/codec/convert.c:419 [error] - Memory leak: RGB
- ./Utilities/gdcmopenjpeg/codec/convert.c:311 [error] - Memory leak: table_R
- ./Utilities/gdcmopenjpeg/codec/convert.c:311 [error] - Memory leak: table_G
- ./Utilities/gdcmopenjpeg/codec/convert.c:311 [error] - Memory leak: table_B
- ./Utilities/gdcmopenjpeg/codec/convert.c:704 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/codec/convert.c:854 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/indexer_JPIP/index_create.c:867 [error] - Uninitialized variable: tmp
- ./Utilities/gdcmopenjpeg/indexer_JPIP/jp2.c:271 [error] - Memory leak: j2kfile
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/convert.c:100 [error] - Resource leak: IN
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/convert.c:512 [error] - Memory leak: table_R
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/convert.c:512 [error] - Memory leak: table_G
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/convert.c:512 [error] - Memory leak: table_B
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/convert.c:658 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/convert.c:692 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/j2k_to_image.c:187 [error] - Common realloc mistake: "src" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/jpwl/decoder/jpwldec/j2k_to_image.c:80 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/jpwl/decoder/libopenjpeg/jpw.c:724 [error] - Memory leak: buff
- ./Utilities/gdcmopenjpeg/jpwl/decoder/libopenjpeg/jpw.c:2167 [error] - Memory leak: buff
- ./Utilities/gdcmopenjpeg/jpwl/decoder/libopenjpeg/jpw.c:2692 [error] - Memory leak: buff
- ./Utilities/gdcmopenjpeg/jpwl/encoder/jpwlenc/convert.c:100 [error] - Resource leak: IN
- ./Utilities/gdcmopenjpeg/jpwl/encoder/jpwlenc/convert.c:512 [error] - Memory leak: table_R
- ./Utilities/gdcmopenjpeg/jpwl/encoder/jpwlenc/convert.c:512 [error] - Memory leak: table_G
- ./Utilities/gdcmopenjpeg/jpwl/encoder/jpwlenc/convert.c:512 [error] - Memory leak: table_B
- ./Utilities/gdcmopenjpeg/jpwl/encoder/jpwlenc/convert.c:658 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/jpwl/encoder/jpwlenc/convert.c:692 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/jpwl/encoder/jpwlenc/j2k_to_image.c:78 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/jpwl/encoder/libopenjpeg/jpw.c:1363 [error] - Memory leak: PSNR
- ./Utilities/gdcmopenjpeg/mj2/extract_j2k_from_mj2.c:64 [error] - Memory leak: frame_codestream
- ./Utilities/gdcmopenjpeg/mj2/frames_to_mj2.c:840 [error] - Resource leak: mj2file
- ./Utilities/gdcmopenjpeg/mj2/meta_out.c:1840 [error] - Invalid number of character (() when these macros are defined: 'NOTYET'.
- ./Utilities/gdcmopenjpeg/mj2/mj2.c:2784 [error] - Common realloc mistake: "src" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/mj2/mj2.c:2788 [error] - Memory leak: src
- ./Utilities/gdcmopenjpeg/mj2/mj2_to_frames.c:52 [error] - Resource leak: outfile
- ./Utilities/gdcmopenjpeg/mj2/mj2_to_metadata.c:256 [error] - Resource leak: file
- ./Utilities/gdcmopenjpeg/mj2/wrap_j2k_in_mj2.c:267 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./Utilities/gdcmuuid/gen_uuid.c:193 [error] - Resource leak: fd
- ./Utilities/gdcmzlib/examples/gun.c:393 [error] - Uninitialized variable: next
- ./Utilities/pvrg/jpeg.c:1779 [error] - Possible null pointer dereference: CFrame - otherwise it is redundant to check if CFrame is null at line 1780
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:14:14 +0000, based on results by cppcheck 1.46