cppcheck analysis of sane-backends_1.0.21-9.dsc
- ./backend/artec_eplus48u.c:3717 [error] - Resource leak: f
- ./backend/canon630u-common.c:576 [error] - Memory leak: buf
- ./backend/canon_pp-dev.c:516 [error] - Resource leak: fd
- ./backend/dc25.c:1272 [error] - Memory leak: horizontal_interpolation
- ./backend/dc25.c:1303 [error] - Memory leak: red
- ./backend/dc25.c:1303 [error] - Memory leak: green
- ./backend/dll.c:1044 [error] - Common realloc mistake: "devlist" nulled but not freed upon failure
- ./backend/dll.c:1103 [error] - Common realloc mistake: "devlist" nulled but not freed upon failure
- ./backend/epson.c:1872 [error] - Memory leak: head
- ./backend/epson.c:5958 [error] - Memory leak: ident
- ./backend/genesys.c:5990 [error] - Possible null pointer dereference: dev - otherwise it is redundant to check if dev is null at line 5991
- ./backend/genesys.c:6026 [error] - Common realloc mistake: "new_dev" nulled but not freed upon failure
- ./backend/genesys.c:2027 [error] - Memory leak: calibration_data
- ./backend/genesys.c:2027 [error] - Memory leak: all_data
- ./backend/genesys.c:2193 [error] - Memory leak: all_data_8
- ./backend/genesys.c:4176 [error] - Memory leak: first_line
- ./backend/genesys.c:5569 [error] - Memory leak: x_range
- ./backend/genesys_gl841.c:5514 [error] - Memory leak: line
- ./backend/genesys_gl841.c:5888 [error] - Memory leak: line
- ./backend/genesys_gl841.c:6027 [error] - Memory leak: data
- ./backend/gphoto2.c:1605 [error] - Buffer access out-of-bounds: path
- ./backend/gphoto2.c:1776 [error] - Buffer access out-of-bounds: path
- ./backend/gt68xx.c:922 [error] - Common realloc mistake: "new_dev" nulled but not freed upon failure
- ./backend/gt68xx.c:970 [error] - Dangerous usage of 'dirname' (strncpy doesn't always 0-terminate it)
- ./backend/hp3900_rts8822.c:928 [error] - Common realloc mistake: "rst" nulled but not freed upon failure
- ./backend/hp3900_rts8822.c:3667 [error] - Memory leak: resource
- ./backend/hp3900_rts8822.c:10754 [error] - The given size 1818 is mismatching
- ./backend/hp3900_rts8822.c:14678 [error] - Memory leak: myscancfg
- ./backend/hp3900_rts8822.c:14678 [error] - Memory leak: avg_colors
- ./backend/hp3900_rts8822.c:14749 [error] - Memory leak: myscancfg
- ./backend/hp3900_rts8822.c:14947 [error] - Memory leak: myscancfg
- ./backend/hp3900_rts8822.c:15017 [error] - Memory leak: myscancfg
- ./backend/hp5400_internal.c:342 [error] - Memory leak: buffer
- ./backend/hp5400_internal.c:719 [error] - Resource leak: file
- ./backend/hp5590.c:540 [error] - Memory leak: opts
- ./backend/hs2p-scsi.c:1288 [error] - Buffer access out-of-bounds: s.gamma_table
- ./backend/lexmark_low.c:2023 [error] - Resource leak: img
- ./backend/ma1509.c:1867 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 1870
- ./backend/ma1509.c:683 [error] - Common realloc mistake: "new_dev" nulled but not freed upon failure
- ./backend/mustek.c:5158 [error] - Common realloc mistake: "new_dev" nulled but not freed upon failure
- ./backend/mustek.c:2240 [error] - Memory leak: cmd2
- ./backend/mustek.c:4994 [error] - Memory leak: extra
- ./backend/mustek_pp.c:275 [error] - Memory leak: buffer
- ./backend/mustek_pp.c:1159 [error] - Memory leak: hndl
- ./backend/mustek_usb.c:577 [error] - Common realloc mistake: "new_dev" nulled but not freed upon failure
- ./backend/mustek_usb_high.c:297 [error] - Memory leak: buffer
- ./backend/mustek_usb_high.c:1367 [error] - Memory leak: buffer
- ./backend/mustek_usb2_asic.c:2518 [error] - Memory leak: temps
- ./backend/mustek_usb2_asic.c:3874 [error] - Memory leak: lpMotorStepsTable
- ./backend/mustek_usb2_asic.c:4898 [error] - Memory leak: lpMotorStepsTable
- ./backend/mustek_usb2_asic.c:4898 [error] - Memory leak: lpMotorTable
- ./backend/mustek_usb2_reflective.c:659 [error] - Memory leak: lpCalData
- ./backend/mustek_usb2_reflective.c:1201 [error] - Memory leak: lpCalData
- ./backend/mustek_usb2_reflective.c:1201 [error] - Resource leak: stream
- ./backend/mustek_usb2_reflective.c:1520 [error] - Memory leak: lpWhiteData
- ./backend/mustek_usb2_reflective.c:1520 [error] - Memory leak: lpDarkData
- ./backend/mustek_usb2_transparent.c:696 [error] - Memory leak: lpCalData
- ./backend/mustek_usb2_transparent.c:1190 [error] - Memory leak: lpCalData
- ./backend/mustek_usb2_transparent.c:1374 [error] - Memory leak: lpWhiteData
- ./backend/mustek_usb2_transparent.c:1374 [error] - Memory leak: lpDarkData
- ./backend/p5.c:1135 [error] - Possible null pointer dereference: session - otherwise it is redundant to check if session is null at line 1146
- ./backend/p5_device.c:1439 [error] - Resource leak: dbg
- ./backend/pint.c:133 [error] - Resource leak: fd
- ./backend/pixma_common.c:497 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 498
- ./backend/pixma_io_sanei.c:175 [error] - Memory leak: si
- ./backend/rts8891.c:1704 [error] - Possible null pointer dereference: session - otherwise it is redundant to check if session is null at line 1715
- ./backend/rts8891.c:3154 [error] - Memory leak: image
- ./backend/rts8891.c:3154 [error] - Memory leak: data
- ./backend/rts8891.c:3432 [error] - Memory leak: data
- ./backend/sm3600-scanutil.c:386 [error] - Memory leak: achBuf
- ./backend/sm3840.c:803 [error] - Possible null pointer dereference: dev - otherwise it is redundant to check if dev is null at line 804
- ./backend/sm3840.c:812 [error] - Memory leak: s
- ./backend/teco2.c:1520 [error] - Memory leak: tmp_min_buf
- ./backend/teco2.c:1520 [error] - Memory leak: tmp_max_buf
- ./backend/test.c:1422 [error] - Buffer access out-of-bounds: caps
- ./backend/test.c:1424 [error] - Buffer access out-of-bounds: caps
- ./backend/test.c:1426 [error] - Buffer access out-of-bounds: caps
- ./backend/test.c:1428 [error] - Buffer access out-of-bounds: caps
- ./backend/test.c:1430 [error] - Buffer access out-of-bounds: caps
- ./backend/test.c:1432 [error] - Buffer access out-of-bounds: caps
- ./backend/test.c:1434 [error] - Buffer access out-of-bounds: caps
- ./backend/umax.c:5908 [error] - Array 'scan_mode_list[7]' index 4294967295 out of bounds
- ./backend/umax.c:2584 [error] - Memory leak: average
- ./backend/umax1220u-common.c:1185 [error] - Memory leak: img
- ./backend/umax1220u-common.c:1243 [error] - Memory leak: img
- ./backend/umax1220u-common.c:1322 [error] - Memory leak: p
- ./backend/umax1220u-common.c:1486 [error] - Memory leak: p
- ./backend/umax1220u-common.c:987 [error] - Array 'buf[512]' index 521 out of bounds
- ./backend/umax_pp_low.c:11106 [error] - Memory leak: buffer
- ./backend/umax_pp_low.c:11116 [error] - Memory leak: dest
- ./backend/umax_pp_low.c:12927 [error] - Memory leak: data
- ./backend/umax_pp_low.c:13161 [error] - Memory leak: commit
- ./backend/umax_pp_low.c:13161 [error] - Memory leak: data
- ./backend/umax_pp_low.c:1258 [error] - Resource leak: fd
- ./backend/v4l.c:560 [error] - Memory leak: s
- ./frontend/saned.c:505 [error] - Common realloc mistake: "handle" nulled but not freed upon failure
- ./frontend/saned.c:2989 [error] - Common realloc mistake: "grplist" nulled but not freed upon failure
- ./sanei/sanei_DomainOS.c:214 [error] - Common realloc mistake: "DomainFdInfo" nulled but not freed upon failure
- ./sanei/sanei_codec_ascii.c:228 [error] - Common realloc mistake: "str" nulled but not freed upon failure
- ./sanei/sanei_scsi.c:1459 [error] - Common realloc mistake: "fd_info" nulled but not freed upon failure
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:18:30 +0000, based on results by cppcheck 1.46