cppcheck analysis of libgphoto2_2.4.10.1-5.dsc
- ./camlibs/barbie/barbie.c:183 [error] - Memory leak: t
- ./camlibs/canon/serial.c:726 [error] - Common realloc mistake: "msg" nulled but not freed upon failure
- ./camlibs/canon/usb.c:2252 [error] - Memory leak: packet
- ./camlibs/digigr8/digi_postprocess.c:139 [error] - Memory leak: templine_red
- ./camlibs/digigr8/digi_postprocess.c:146 [error] - Memory leak: templine_green
- ./camlibs/digigr8/digigr8.c:212 [error] - Memory leak: get_size
- ./camlibs/digita/digita.c:251 [error] - Common realloc mistake: "data" nulled but not freed upon failure
- ./camlibs/hp215/hp215.c:389 [error] - Memory leak: buf
- ./camlibs/hp215/hp215.c:736 [error] - Memory leak: buf
- ./camlibs/hp215/hp215.c:767 [error] - Memory leak: buf
- ./camlibs/hp215/hp215.c:837 [error] - Memory leak: buf
- ./camlibs/jl2005a/library.c:233 [error] - Memory leak: p_data
- ./camlibs/konica/lowlevel.c:265 [error] - Common realloc mistake: "sb" nulled but not freed upon failure
- ./camlibs/konica/lowlevel.c:282 [error] - Common realloc mistake: "sb" nulled but not freed upon failure
- ./camlibs/minolta/dimagev/download.c:183 [error] - Memory leak: data
- ./camlibs/minolta/dimagev/util.c:82 [error] - Data is allocated but not initialized: rgb_data
- ./camlibs/pccam300/pccam300.c:171 [error] - Memory leak: buf
- ./camlibs/pccam600/library.c:177 [error] - Memory leak: file_entry
- ./camlibs/ptp2/config.c:4710 [error] - Common realloc mistake: "setprops" nulled but not freed upon failure
- ./camlibs/ptp2/config.c:3612 [error] - Dangerous usage of 'capture_date' (strncpy doesn't always 0-terminate it)
- ./camlibs/ptp2/library.c:4051 [error] - Possible null pointer dereference: oids - otherwise it is redundant to check if oids is null at line 4052
- ./camlibs/ptp2/library.c:4054 [error] - Possible null pointer dereference: oids - otherwise it is redundant to check if oids is null at line 4055
- ./camlibs/ptp2/library.c:142 [error] - Common realloc mistake: "special_files" nulled but not freed upon failure
- ./camlibs/ptp2/library.c:4051 [error] - Common realloc mistake: "oids" nulled but not freed upon failure
- ./camlibs/ptp2/ptp.c:1325 [error] - Memory leak: data
- ./camlibs/ptp2/ptpip.c:619 [error] - Memory leak: addr
- ./camlibs/sipix/blink.c:786 [error] - Memory leak: ydata
- ./camlibs/sipix/blink2.c:261 [error] - Memory leak: convline
- ./camlibs/sipix/blink2.c:261 [error] - Memory leak: convline2
- ./camlibs/sipix/blink2.c:261 [error] - Memory leak: rawline
- ./libgphoto2/gphoto2-file.c:460 [error] - Memory leak: data
- ./libgphoto2/gphoto2-file.c:766 [error] - Memory leak: data
- ./libgphoto2/gphoto2-filesys.c:1470 [error] - Memory leak: xfolder
- ./libgphoto2_port/usb/libusb.c:523 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 530
- ./libgphoto2_port/usb/libusb.c:524 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 530
- ./libgphoto2_port/usb/libusb.c:525 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 530
- ./libgphoto2_port/usb/libusb.c:526 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 530
- ./libgphoto2_port/usb/libusb.c:527 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 530
- ./libgphoto2_port/usb/libusb.c:528 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 530
- ./libgphoto2_port/usb/usb-os2.c:201 [error] - Uninitialized variable: ret
- ./libgphoto2_port/usb/usb-os2.c:212 [error] - Uninitialized variable: ret
- ./libgphoto2_port/usbdiskdirect/linux.c:231 [error] - Resource leak: dir
- ./libgphoto2_port/usbscsi/linux.c:226 [error] - Resource leak: dir
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Wed, 30 Mar 2011 06:58:09 +0000, based on results by cppcheck 1.46