cppcheck analysis of linux-2.6_2.6.32-10.dsc
- ./Documentation/accounting/getdelays.c:506 [error] - Memory leak: logfile
- ./Documentation/connector/ucon.c:250 [possible error] - Resource leak: out
- ./Documentation/ia64/aliasing-test.c:136 [error] - Resource leak: fd
- ./Documentation/lguest/lguest.c:1049 [possible error] - Memory leak: stack
- ./Documentation/video4linux/v4lgrab.c:163 [error] - Resource leak: fd
- ./arch/alpha/boot/tools/objstrip.c:279 [error] - Resource leak: fd
- ./arch/alpha/boot/tools/objstrip.c:279 [error] - Resource leak: ofd
- ./arch/arm/kernel/traps.c:681 [error] - Null pointer dereference
- ./arch/avr32/boards/atngw100/mrmt.c:154 [error] - Invalid number of character ({) when these macros are defined: 'CONFIG_BOARD_MRMT_UCB1400_TS'.
- ./arch/h8300/kernel/irq.c:91 [error] - Possible null pointer dereference: rom_vector
- ./lib/decompress_inflate.c:173 [possible error] - Memory leak: zbuf
- ./arch/microblaze/mm/pgtable.c:188 [error] - Uninitialized variable: a
- ./arch/mips/alchemy/common/irq.c:546 [error] - Uninitialized variable: off
- ./arch/mips/boot/addinitrd.c:130 [error] - Resource leak: fd_outfile
- ./arch/parisc/kernel/signal.c:589 [error] - Uninitialized variable: oldset
- ./arch/powerpc/boot/ps3.c:156 [error] - Null pointer dereference
- ./arch/s390/kernel/early.c:141 [error] - Undefined behaviour: defsys_cmd is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./arch/s390/kernel/early.c:135 [error] - Undefined behaviour: defsys_cmd is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./arch/sh/drivers/heartbeat.c:108 [possible error] - Memory leak: hd
- ./arch/sparc/kernel/pcic.c:357 [possible error] - Array 't_nmi[1]' index 1 out of bounds
- ./arch/sparc/kernel/pcic.c:358 [possible error] - Array 't_nmi[1]' index 2 out of bounds
- ./arch/sparc/kernel/pcic.c:359 [possible error] - Array 't_nmi[1]' index 3 out of bounds
- ./arch/sparc/kernel/pcic.c:357 [possible error] - Array 'pcic_nmi_trap_patch[1]' index 1 out of bounds
- ./arch/sparc/kernel/pcic.c:358 [possible error] - Array 'pcic_nmi_trap_patch[1]' index 2 out of bounds
- ./arch/sparc/kernel/pcic.c:359 [possible error] - Array 'pcic_nmi_trap_patch[1]' index 3 out of bounds
- ./arch/sparc/kernel/pcic.c:693 [error] - Uninitialized variable: irq
- ./arch/sparc/kernel/prom_common.c:115 [possible error] - Memory leak: new_val
- ./arch/sparc/kernel/sbus.c:658 [error] - Memory leak: iommu
- ./arch/um/drivers/line.c:21 [error] - Possible null pointer dereference: line - otherwise it is redundant to check if line is null at line 23
- ./arch/um/drivers/xterm.c:126 [error] - Resource leak: fd
- ./arch/um/os-Linux/mem.c:178 [error] - Memory leak: tempname
- ./arch/um/os-Linux/mem.c:202 [error] - Resource leak: fd
- ./arch/um/os-Linux/uaccess.c:17 [error] - Wrong assignment of an auto-variable to an effective parameter of a function
- ./arch/x86/boot/compressed/relocs.c:650 [possible error] - Resource leak: fp
- ./arch/x86/kernel/ds.c:304 [possible error] - Memory leak: new_context
- ./arch/x86/kernel/kgdb.c:213 [error] - Uninitialized variable: dr7
- ./arch/x86/kernel/traps.c:535 [error] - Uninitialized variable: condition
- ./block/genhd.c:330 [possible error] - Memory leak: p
- ./drivers/acpi/ec.c:973 [error] - Memory leak: saved_ec
- ./drivers/acpi/scan.c:1015 [error] - Memory leak: id.id
- ./drivers/atm/fore200e.c:2809 [error] - Uninitialized variable: err
- ./drivers/char/agp/uninorth-agp.c:66 [error] - Uninitialized variable: i
- ./drivers/char/ip2/i2cmd.c:207 [error] - Array 'cmd[2]' index 2 out of bounds
- ./drivers/char/ipmi/ipmi_msghandler.c:1264 [possible error] - Memory leak: rcvr
- ./drivers/char/sysrq.c:130 [error] - Possible null pointer dereference: killer
- ./drivers/dma/ioat/dma_v2.c:702 [error] - Possible null pointer dereference: desc - otherwise it is redundant to check if desc is null at line 712
- ./drivers/dma/ioat/dma_v3.c:458 [error] - Possible null pointer dereference: desc - otherwise it is redundant to check if desc is null at line 468
- ./drivers/dma/ioat/dma_v3.c:531 [error] - Possible null pointer dereference: desc - otherwise it is redundant to check if desc is null at line 552
- ./drivers/dma/ioat/dma_v3.c:565 [error] - Possible null pointer dereference: compl_desc - otherwise it is redundant to check if compl_desc is null at line 571
- ./drivers/dma/ioat/dma_v3.c:724 [error] - Possible null pointer dereference: compl_desc - otherwise it is redundant to check if compl_desc is null at line 730
- ./drivers/dma/ioat/dma_v3.c:838 [error] - Possible null pointer dereference: desc - otherwise it is redundant to check if desc is null at line 851
- ./drivers/firmware/dell_rbu.c:220 [possible error] - Memory leak: newpacket
- ./drivers/gpu/drm/radeon/mkregtable.c:665 [error] - Resource leak: file
- ./drivers/gpu/drm/ttm/ttm_memory.c:326 [error] - Memory leak: zone
- ./drivers/gpu/drm/ttm/ttm_memory.c:285 [error] - Memory leak: zone
- ./drivers/infiniband/hw/mthca/mthca_av.c:238 [possible error] - Memory leak: av
- ./drivers/isdn/act2000/capi.c:145 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:166 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:188 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:210 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:262 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:309 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:344 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:365 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:377 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:390 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:407 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:425 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:439 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:459 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:472 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:484 [error] - Possible null pointer dereference: m
- ./drivers/isdn/act2000/capi.c:498 [error] - Possible null pointer dereference: m
- ./drivers/isdn/hysdn/hysdn_net.c:190 [error] - Possible null pointer dereference: lp - otherwise it is redundant to check if lp is null at line 193
- ./drivers/isdn/mISDN/dsp_cmx.c:1616 [error] - Invalid number of character ({) when these macros are defined: 'DSP_NEVER_DEFINED'.
- ./drivers/leds/leds-gpio.c:318 [error] - Uninitialized variable: ret
- ./drivers/macintosh/adb.c:816 [possible error] - Memory leak: req
- ./drivers/md/dm-exception-store.c:219 [error] - Memory leak: tmp_store
- ./drivers/media/dvb/frontends/zl10036.c:510 [error] - Memory leak: state
- ./drivers/media/video/bt8xx/bttv-cards.c:351 [error] - Syntax error. Not enough parameters for macro '_MUXSEL4'.
- ./drivers/media/video/bt8xx/bttv-cards.c:351 [error] - Syntax error. Not enough parameters for macro '_MUXSEL4'.
- ./drivers/media/video/bt8xx/bttv-cards.c:351 [error] - Syntax error. Not enough parameters for macro '_MUXSEL4'.
- ./drivers/media/video/bt8xx/bttv-cards.c:351 [error] - Syntax error. Not enough parameters for macro '_MUXSEL4'.
- ./drivers/media/video/hdpvr/hdpvr-core.c:195 [error] - Memory leak: print_buf
- ./drivers/media/video/hdpvr/hdpvr-video.c:166 [error] - Memory leak: buf
- ./drivers/media/video/ir-kbd-i2c.c:235 [error] - Uninitialized variable: key
- ./drivers/media/video/mx1_camera.c:444 [error] - Uninitialized variable: ret
- ./drivers/media/video/s2255drv.c:2594 [possible error] - Memory leak: dev
- ./drivers/media/video/vivi.c:1163 [error] - Memory leak: fh
- ./drivers/misc/sgi-xp/xpc_partition.c:71 [error] - Uninitialized variable: buf
- ./drivers/mtd/maps/ceiva.c:269 [error] - Uninitialized variable: nr
- ./drivers/mtd/maps/pxa2xx-flash.c:72 [error] - Memory leak: info
- ./drivers/mtd/nand/mxc_nand.c:1075 [error] - Possible null pointer dereference: mtd - otherwise it is redundant to check if mtd is null at line 1080
- ./drivers/mtd/nand/mxc_nand.c:1092 [error] - Possible null pointer dereference: mtd - otherwise it is redundant to check if mtd is null at line 1098
- ./drivers/mtd/ubi/vmt.c:585 [possible error] - Memory leak: new_mapping
- ./drivers/net/bmac.c:1204 [possible error] - Array index out of bounds
- ./drivers/net/ixgbe/ixgbe_ethtool.c:913 [error] - Memory leak: temp_rx_ring
- ./drivers/net/ixgbe/ixgbe_main.c:274 [error] - Uninitialized variable: tc
- ./drivers/net/pcmcia/nmclan_cs.c:1438 [error] - Invalid number of character ({) when these macros are defined: 'BROKEN_MULTICAST;PCMCIA_DEBUG'.
- ./drivers/net/phy/mdio-gpio.c:220 [error] - Memory leak: pdata
- ./drivers/net/sun3_82586.c:994 [possible error] - Array 'xmit_cmds[1]' index 1 out of bounds
- ./drivers/net/tg3.c:9235 [possible error] - Memory leak: buf
- ./drivers/net/wireless/iwlwifi/iwl3945-base.c:1905 [error] - Buffer access out-of-bounds
- ./drivers/net/wireless/p54/p54usb.c:338 [possible error] - Memory leak: reg
- ./drivers/net/wireless/ray_cs.c:2578 [possible error] - Array 'var[1]' index 1 out of bounds
- ./drivers/net/wireless/ray_cs.c:2578 [possible error] - Array 'var[1]' index 2 out of bounds
- ./drivers/net/wireless/ray_cs.c:2578 [possible error] - Array 'var[1]' index 3 out of bounds
- ./drivers/net/wireless/ray_cs.c:2578 [possible error] - Array 'var[1]' index 4 out of bounds
- ./drivers/net/wireless/ray_cs.c:2578 [possible error] - Array 'var[1]' index 5 out of bounds
- ./drivers/net/wireless/ray_cs.c:2579 [possible error] - Array 'var[1]' index 2 out of bounds
- ./drivers/net/wireless/ray_cs.c:2592 [possible error] - Array 'var[1]' index 2 out of bounds
- ./drivers/net/wireless/ray_cs.c:2593 [possible error] - Array 'var[1]' index 3 out of bounds
- ./drivers/net/wireless/ray_cs.c:2593 [possible error] - Array 'var[1]' index 4 out of bounds
- ./drivers/parisc/iosapic.c:247 [error] - Uninitialized variable: a
- ./drivers/pci/hotplug/cpqphp_ctrl.c:2999 [possible error] - Memory leak: hold_bus_node
- ./drivers/pci/hotplug/ibmphp_res.c:1686 [possible error] - Memory leak: mem
- ./drivers/pci/hotplug/pciehp_core.c:145 [possible error] - Memory leak: hotplug
- ./drivers/platform/x86/wmi.c:590 [error] - Memory leak: gblock
- ./drivers/rtc/rtc-mxc.c:400 [error] - Memory leak: pdata
- ./drivers/s390/char/tape_3590.c:1615 [error] - Memory leak: rdc_data
- ./drivers/s390/char/vmlogrdr.c:453 [error] - Uninitialized variable: user_data_count
- ./drivers/s390/cio/cmf.c:599 [possible error] - Memory leak: cmb_data
- ./drivers/scsi/aacraid/commctrl.c:818 [error] - Memory leak: usg
- ./drivers/scsi/aic7xxx/aic79xx_core.c:6085 [possible error] - Memory leak: ahd
- ./drivers/scsi/aic7xxx/aic7xxx_core.c:4428 [error] - Memory leak: ahc
- ./drivers/scsi/aic7xxx/aicasm/aicasm.c:646 [error] - Memory leak: func_values
- ./drivers/scsi/fcoe/fcoe.c:1670 [error] - Uninitialized variable: rc
- ./drivers/scsi/fd_mcs.c:1233 [error] - Possible null pointer dereference: SCpnt - otherwise it is redundant to check if SCpnt is null at line 1241
- ./drivers/scsi/lpfc/lpfc_els.c:5349 [possible error] - Memory leak: els_data
- ./drivers/scsi/mvsas/mv_sas.c:1358 [error] - Possible null pointer dereference: mvi_dev - otherwise it is redundant to check if mvi_dev is null at line 1363
- ./drivers/scsi/sym53c416.c:566 [possible error] - Array index out of bounds
- ./drivers/spi/spi_bfin5xx.c:1038 [possible error] - Memory leak: chip
- ./drivers/staging/comedi/drivers/pcmmio.c:515 [possible error] - Array 'irq[1]' index 1 out of bounds
- ./drivers/staging/comedi/drivers/pcmmio.c:516 [possible error] - Array 'irq[1]' index 1 out of bounds
- ./drivers/staging/cx25821/cx25821-audups11.c:362 [error] - Possible null pointer dereference: fh - otherwise it is redundant to check if fh is null at line 365
- ./drivers/staging/cx25821/cx25821-video.c:966 [error] - Possible null pointer dereference: fh - otherwise it is redundant to check if fh is null at line 969
- ./drivers/staging/dream/camera/msm_camera.c:853 [possible error] - Memory leak: qcmd
- ./drivers/staging/dream/camera/msm_camera.c:1890 [error] - Memory leak: ctrl_pmsm
- ./drivers/staging/hv/Hv.c:353 [error] - Uninitialized variable: addr
- ./drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c:171 [error] - Resource leak: fp_ev
- ./drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c:113 [error] - Resource leak: fp
- ./drivers/staging/iio/Documentation/lis3l02dqbuffersimple.c:107 [error] - Memory leak: data
- ./drivers/staging/otus/ioctl.c:876 [error] - Memory leak: pBssList
- ./drivers/staging/otus/wrap_ev.c:233 [error] - Uninitialized variable: buf
- ./drivers/staging/p9auth/p9auth.c:208 [error] - Memory leak: node_ptr
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: ''.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'AGGREGATION_SUPPORT'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'CONFIG_PM'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'DBG'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'IGMP_SNOOP_SUPPORT'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'LINUX'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'LINUX;CONFIG_5VT_ENHANCE'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'LINUX;CONTAINING_RECORD'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'LINUX;DBG'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'LINUX;RT3070'.
- ./drivers/staging/rt2860/common/ba_action.c:1016 [possible error] - Memory leak: Elem
- ./drivers/staging/rt2860/common/eeprom.c:1070 [error] - Memory leak: PDATA
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: ''.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'AGGREGATION_SUPPORT'.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'DBG'.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'IGMP_SNOOP_SUPPORT'.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'LINUX'.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'LINUX;CONFIG_5VT_ENHANCE'.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'LINUX;CONTAINING_RECORD'.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'LINUX;DBG'.
- ./drivers/staging/rt2860/common/mlme.c:1427 [error] - Invalid number of character (() when these macros are defined: 'LINUX;RT3070'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'CONSISTENT_PN_ORDER'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'DEBUG'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'CCX_SUPPORT'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'CONFIG_5VT_ENHANCE'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'IW_QUAL_DBM'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'AGGREGATION_SUPPORT;PIGGYBACK_SUPPORT'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: ''.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'AGGREGATION_SUPPORT'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'DBG'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'IGMP_SNOOP_SUPPORT'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'LINUX'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'LINUX;CONFIG_5VT_ENHANCE'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'LINUX;CONTAINING_RECORD'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'LINUX;DBG'.
- ./drivers/staging/rt2860/sta/rtmp_data.c:1132 [error] - Invalid number of character (() when these macros are defined: 'LINUX;RT3070'.
- ./drivers/staging/rt2860/sta/wpa.c:1952 [error] - Undefined behaviour: custom is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'IW_MLME_DEAUTH'.
- ./drivers/staging/rt2860/rtmp.h:3723 [error] - Invalid number of character (() when these macros are defined: 'IW_MLME_DISASSOC'.
- ./drivers/staging/rt2860/sta_ioctl.c:1682 [error] - Undefined behaviour: pOutBuf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt2860/sta_ioctl.c:1691 [error] - Undefined behaviour: pOutBuf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt2860/sta_ioctl.c:1693 [error] - Undefined behaviour: pOutBuf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt2860/sta_ioctl.c:1702 [error] - Undefined behaviour: pOutBuf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/common/cmm_info.c:3220 [error] - Undefined behaviour: pBuf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/common/cmm_wpa.c:1972 [error] - Possible null pointer dereference: rsnielen_cur_p
- ./drivers/staging/rt3090/common/mlme.c:3098 [error] - Possible null pointer dereference: auto_rate_cur_p
- ./drivers/staging/rt3090/sta_ioctl.c:7379 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7390 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7393 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7394 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7395 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7396 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7397 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7398 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7399 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7400 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7401 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7402 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7403 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/rt3090/sta_ioctl.c:7405 [error] - Undefined behaviour: extra is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/staging/sep/sep_driver.c:1835 [error] - Uninitialized variable: error
- ./drivers/staging/vme/bridges/vme_tsi148.c:235 [error] - Memory leak: error
- ./drivers/staging/vme/bridges/vme_tsi148.c:1812 [error] - Memory leak: entry
- ./drivers/staging/vt6656/usbpipe.c:779 [error] - Null pointer dereference
- ./drivers/staging/wlan-ng/p80211netdev.c:486 [error] - Invalid number of character ({) when these macros are defined: 'SIOCETHTOOL'.
- ./drivers/usb/atm/usbatm.c:1393 [error] - Undefined behaviour: buffer is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./drivers/usb/core/devio.c:714 [possible error] - Memory leak: ps
- ./drivers/usb/gadget/ci13xxx_udc.c:2536 [error] - Syntax error. Not enough parameters for macro 'trace'.
- ./drivers/usb/host/fhci-hcd.c:245 [error] - Possible null pointer dereference: usb - otherwise it is redundant to check if usb is null at line 247
- ./drivers/usb/host/isp116x-hcd.c:722 [possible error] - Memory leak: ep
- ./drivers/usb/host/xhci-mem.c:772 [error] - Memory leak: command
- ./drivers/usb/musb/musb_host.c:1851 [error] - Uninitialized variable: idle
- ./drivers/usb/serial/io_ti.c:2088 [error] - Possible null pointer dereference: tty - otherwise it is redundant to check if tty is null at line 2140
- ./drivers/usb/serial/ipaq.c:705 [error] - Memory leak: pkt.data
- ./drivers/uwb/reset.c:314 [error] - Deallocating a deallocated pointer: cmd
- ./drivers/video/console/fbcon.c:723 [possible error] - Memory leak: ops
- ./drivers/video/msm/mdp.c:425 [error] - Memory leak: mdp
- ./drivers/watchdog/machzwd.c:147 [error] - Invalid number of character (() when these macros are defined: 'ZF_DEBUG'.
- ./drivers/xen/xenfs/xenbus.c:410 [error] - Uninitialized variable: rc
- ./firmware/ihex2fw.c:103 [possible error] - Resource leak: infd
- ./firmware/ihex2fw.c:124 [possible error] - Resource leak: outfd
- ./fs/btrfs/relocation.c:3278 [error] - Memory leak: cluster
- ./fs/btrfs/volumes.c:1257 [error] - Possible null pointer dereference: fs_devices
- ./fs/coda/upcall.c:761 [error] - Memory leak: sig_req
- ./fs/compat.c:1179 [possible error] - Memory leak: iov
- ./fs/hpfs/dir.c:150 [possible error] - Array 'name[1]' index 1 out of bounds
- ./fs/jffs2/read.c:150 [possible error] - Memory leak: readbuf
- ./fs/jffs2/readinode.c:142 [possible error] - Memory leak: buffer
- ./fs/jffs2/scan.c:276 [possible error] - Memory leak: flashbuf
- ./fs/jffs2/scan.c:517 [possible error] - Memory leak: sumptr
- ./fs/nls/nls_euc-jp.c:497 [possible error] - Array index out of bounds
- ./fs/nls/nls_euc-jp.c:500 [possible error] - Array index out of bounds
- ./fs/nls/nls_euc-jp.c:501 [possible error] - Array index out of bounds
- ./fs/ntfs/mft.c:1962 [error] - Possible null pointer dereference: ctx - otherwise it is redundant to check if ctx is null at line 1990
- ./fs/ocfs2/cluster/nodemanager.c:794 [possible error] - Memory leak: cluster
- ./fs/ocfs2/cluster/nodemanager.c:794 [possible error] - Memory leak: ns
- ./fs/ocfs2/cluster/nodemanager.c:794 [possible error] - Memory leak: defs
- ./fs/ocfs2/dlm/dlmrecovery.c:1478 [possible error] - Memory leak: buf
- ./fs/ocfs2/dlm/dlmrecovery.c:1478 [possible error] - Memory leak: item
- ./fs/ocfs2/quota_local.c:289 [error] - Memory leak: rc.rc_bitmap
- ./fs/ocfs2/slot_map.c:461 [possible error] - Memory leak: si
- ./kernel/cred.c:367 [error] - Memory leak: tgcred
- ./mm/sparse.c:619 [possible error] - Memory leak: usemap
- ./net/9p/trans_rdma.c:502 [error] - Memory leak: c
- ./net/9p/trans_rdma.c:498 [possible error] - Memory leak: rpl_context
- ./net/sched/cls_tcindex.c:321 [possible error] - Memory leak: f
- ./net/socket.c:1115 [possible error] - Memory leak: fna
- ./net/sunrpc/xprt.c:199 [error] - Possible null pointer dereference: req - otherwise it is redundant to check if req is null at line 209
- ./scripts/dtc/fstree.c:80 [error] - Resource leak: d
- ./scripts/genksyms/genksyms.c:795 [error] - Resource leak: ref_file
- ./scripts/kconfig/qconf.cc:1231 [possible error] - Memory leak: layout1
- ./scripts/kconfig/qconf.h:132 [possible error] - Memory leak: ConfigList::headerPopup
- ./scripts/kconfig/qconf.h:240 [possible error] - Memory leak: ConfigView::list
- ./scripts/kconfig/qconf.h:241 [possible error] - Memory leak: ConfigView::lineEdit
- ./scripts/kconfig/qconf.h:289 [possible error] - Memory leak: ConfigSearchWindow::editField
- ./scripts/kconfig/qconf.h:290 [possible error] - Memory leak: ConfigSearchWindow::searchButton
- ./scripts/kconfig/qconf.h:291 [possible error] - Memory leak: ConfigSearchWindow::split
- ./scripts/kconfig/qconf.h:292 [possible error] - Memory leak: ConfigSearchWindow::list
- ./scripts/kconfig/qconf.h:293 [possible error] - Memory leak: ConfigSearchWindow::info
- ./scripts/kconfig/qconf.h:324 [possible error] - Memory leak: ConfigMainWindow::searchWindow
- ./scripts/kconfig/qconf.h:325 [possible error] - Memory leak: ConfigMainWindow::menuView
- ./scripts/kconfig/qconf.h:327 [possible error] - Memory leak: ConfigMainWindow::configView
- ./scripts/kconfig/qconf.h:329 [possible error] - Memory leak: ConfigMainWindow::helpText
- ./scripts/kconfig/qconf.h:330 [possible error] - Memory leak: ConfigMainWindow::toolBar
- ./scripts/kconfig/qconf.h:331 [possible error] - Memory leak: ConfigMainWindow::backAction
- ./scripts/kconfig/qconf.h:332 [possible error] - Memory leak: ConfigMainWindow::split1
- ./scripts/kconfig/qconf.h:333 [possible error] - Memory leak: ConfigMainWindow::split2
- ./scripts/mod/modpost.c:311 [error] - Resource leak: fd
- ./sound/core/oss/pcm_oss.c:457 [error] - Memory leak: save
- ./sound/core/seq/seq_midi.c:411 [possible error] - Memory leak: client
- ./sound/isa/gus/gus_mem_proc.c:133 [possible error] - Memory leak: priv
- ./sound/oss/vwsnd.c:177 [error] - Null pointer dereference
- ./sound/soc/codecs/ak4642.c:486 [error] - Uninitialized variable: ret
- ./sound/soc/codecs/wm8988.c:1051 [error] - Uninitialized variable: ret
- ./sound/soc/s3c24xx/s3c24xx-pcm.c:128 [error] - Possible null pointer dereference: substream - otherwise it is redundant to check if substream is null at line 130
- ./tools/perf/builtin-timechart.c:379 [error] - Memory leak: pwr
- ./tools/perf/builtin-timechart.c:571 [error] - Memory leak: pwr
- ./tools/perf/util/parse-events.c:500 [error] - Resource leak: evt_dir
- ./tools/perf/util/parse-events.c:536 [error] - Memory leak: evt_name
- ./tools/perf/util/path.c:273 [possible error] - Array index out of bounds
- ./tools/perf/util/trace-event-info.c:280 [error] - Resource leak: fd
- ./tools/perf/util/trace-event-info.c:356 [error] - Resource leak: dir
- ./tools/perf/util/trace-event-info.c:434 [error] - Resource leak: dir
- ./tools/perf/util/trace-event-parse.c:916 [error] - Memory leak: brackets
- ./tools/perf/util/values.c:172 [error] - Memory leak: counterwidth
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:54:36 +0000, based on results by cppcheck 1.41-modif