cppcheck analysis of libgphoto2_2.4.6-3.dsc
- ./camlibs/barbie/barbie.c:183 [error] - Memory leak: t
- ./camlibs/canon/serial.c:724 [error] - Common realloc mistake: "msg" nulled but not freed upon failure
- ./camlibs/canon/usb.c:2252 [error] - Memory leak: packet
- ./camlibs/digigr8/digigr8.c:212 [error] - Memory leak: get_size
- ./camlibs/digita/digita.c:248 [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/kodak/dc240/library.c:500 [error] - Memory leak: p
- ./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:2395 [error] - Dangerous usage of 'capture_date' (strncpy doesn't always 0-terminate it)
- ./camlibs/ptp2/library.c:3537 [error] - Possible null pointer dereference: oids - otherwise it is redundant to check if oids is null at line 3538
- ./camlibs/ptp2/library.c:3540 [error] - Possible null pointer dereference: oids - otherwise it is redundant to check if oids is null at line 3541
- ./camlibs/ptp2/library.c:139 [error] - Common realloc mistake: "special_files" nulled but not freed upon failure
- ./camlibs/ptp2/library.c:3537 [error] - Common realloc mistake: "oids" nulled but not freed upon failure
- ./camlibs/ptp2/library.c:2225 [error] - Memory leak: path
- ./camlibs/ptp2/ptp.c:1306 [error] - Memory leak: data
- ./camlibs/ptp2/ptpip.c:612 [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
- ./camlibs/sq905/postprocess.c:250 [error] - Memory leak: temp_line
- ./libgphoto2/gphoto2-file.c:460 [error] - Memory leak: data
- ./libgphoto2/gphoto2-file.c:764 [error] - Memory leak: data
- ./libgphoto2/gphoto2-filesys.c:1447 [error] - Memory leak: xfolder
- ./libgphoto2_port/disk/disk.c:233 [error] - Mismatching allocation and deallocation: mnt
- ./libgphoto2_port/disk/disk.c:235 [error] - Mismatching allocation and deallocation: mnt
- ./libgphoto2_port/disk/disk.c:274 [error] - Mismatching allocation and deallocation: mnt
- ./libgphoto2_port/usb/libusb.c:492 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 499
- ./libgphoto2_port/usb/libusb.c:493 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 499
- ./libgphoto2_port/usb/libusb.c:494 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 499
- ./libgphoto2_port/usb/libusb.c:495 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 499
- ./libgphoto2_port/usb/libusb.c:496 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 499
- ./libgphoto2_port/usb/libusb.c:497 [error] - Possible null pointer dereference: port - otherwise it is redundant to check if port is null at line 499
- ./libgphoto2_port/usb/usb-os2.c:201 [error] - Uninitialized variable: ret
- ./libgphoto2_port/usb/usb-os2.c:212 [error] - Uninitialized variable: ret
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:15:48 +0000, based on results by cppcheck 1.46