cppcheck analysis of gdcm_2.0.17-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:295 [error] - Memory leak: dummy_buffer
- ./Source/MediaStorageAndFileFormat/gdcmPNMCodec.cxx:180 [error] - Memory leak: buf
- ./Source/MediaStorageAndFileFormat/gdcmRLECodec.cxx:361 [error] - Memory leak: buffer
- ./Source/MediaStorageAndFileFormat/gdcmRLECodec.cxx:361 [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:315 [error] - Resource leak: fdest
- ./Utilities/gdcmopenjpeg/codec/convert.c:438 [error] - Resource leak: IN
- ./Utilities/gdcmopenjpeg/codec/convert.c:725 [error] - Memory leak: RGB
- ./Utilities/gdcmopenjpeg/codec/convert.c:615 [error] - Memory leak: table_R
- ./Utilities/gdcmopenjpeg/codec/convert.c:615 [error] - Memory leak: table_G
- ./Utilities/gdcmopenjpeg/codec/convert.c:615 [error] - Memory leak: table_B
- ./Utilities/gdcmopenjpeg/codec/convert.c:1033 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/codec/convert.c:1131 [error] - Memory leak: name
- ./Utilities/gdcmopenjpeg/codec/convert.c:1186 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/codec/convert.c:2045 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/codec/convert.c:2160 [error] - Resource leak: rawFile
- ./Utilities/gdcmopenjpeg/codec/image_to_j2k.c:365 [error] - Resource leak: dir
- ./Utilities/gdcmopenjpeg/codec/image_to_j2k.c:390 [error] - Resource leak: dir
- ./Utilities/gdcmopenjpeg/codec/image_to_j2k.c:416 [error] - Memory leak: fname
- ./Utilities/gdcmopenjpeg/codec/j2k_dump.c:130 [error] - Resource leak: dir
- ./Utilities/gdcmopenjpeg/codec/j2k_dump.c:155 [error] - Resource leak: dir
- ./Utilities/gdcmopenjpeg/codec/j2k_to_image.c:163 [error] - Resource leak: dir
- ./Utilities/gdcmopenjpeg/codec/j2k_to_image.c:188 [error] - Resource leak: dir
- ./Utilities/gdcmopenjpeg/libopenjpeg/j2k.c:8898 [error] - Common realloc mistake: "l_current_data" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/libopenjpeg/j2k.c:8991 [error] - Common realloc mistake: "l_current_data" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/libopenjpeg/j2k.c:1608 [error] - Memory leak: packet_array
- ./Utilities/gdcmopenjpeg/libopenjpeg/jp2.c:552 [error] - Common realloc mistake: "l_current_data" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/mj2/extract_j2k_from_mj2.c:133 [error] - Memory leak: frame_codestream
- ./Utilities/gdcmopenjpeg/mj2/frames_to_mj2.c:684 [error] - Resource leak: mj2file
- ./Utilities/gdcmopenjpeg/mj2/meta_out.c:1836 [error] - Invalid number of character (() when these macros are defined: 'NOTYET'.
- ./Utilities/gdcmopenjpeg/mj2/mj2_convert.c:61 [error] - Resource leak: f
- ./Utilities/gdcmopenjpeg/mj2/mj2_convert.c:143 [error] - Resource leak: yuvfile
- ./Utilities/gdcmopenjpeg/mj2/mj2_to_frames.c:159 [error] - Common realloc mistake: "frame_codestream" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/mj2/mj2_to_frames.c:100 [error] - Resource leak: outfile
- ./Utilities/gdcmopenjpeg/mj2/mj2_to_metadata.c:269 [error] - Resource leak: file
- ./Utilities/gdcmopenjpeg/test_Free_image_V2_tile_handling/test2_decoder.c:298 [error] - Common realloc mistake: "l_data" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/test_Free_image_V2_tile_handling/test2_decoder.c:138 [error] - Memory leak: l_data
- ./Utilities/gdcmopenjpeg/test_Free_image_V2_tile_handling/test2_encoder.c:270 [error] - Memory leak: l_tile_data
- ./Utilities/gdcmopenjpeg/test_V2_tile_handling/test_decoder.c:201 [error] - Common realloc mistake: "l_data" nulled but not freed upon failure
- ./Utilities/gdcmopenjpeg/test_V2_tile_handling/test_encoder.c:221 [error] - Memory leak: l_data
- ./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 Sat, 26 Mar 2011 06:58:04 +0000, based on results by cppcheck 1.46