cppcheck analysis of u-boot_2010.09-2.dsc
- ./arch/arm/cpu/ixp/npe/npe.c:664 [error] - Memory leak: dev
- ./arch/m68k/cpu/mcf532x/speed.c:261 [error] - Uninitialized variable: fout
- ./arch/powerpc/cpu/mpc512x/iim.c:159 [error] - Invalid number of character (() when these macros are defined: 'CONFIG_CMD_FUSE;DEBUG'.
- ./arch/powerpc/cpu/mpc85xx/portals.c:134 [error] - Dangerous usage of 'handle' (strncpy doesn't always 0-terminate it)
- ./board/Marvell/db64360/mv_eth.c:248 [error] - Memory leak: dev
- ./board/Marvell/db64360/sdram_init.c:1251 [error] - Invalid number of character ({) when these macros are defined: 'CONFIG_MV64360_ECC;ZUMA_NTL'.
- ./board/Marvell/db64360/sdram_init.c:1251 [error] - Invalid number of character ({) when these macros are defined: 'ZUMA_NTL'.
- ./board/Marvell/db64460/mv_eth.c:248 [error] - Memory leak: dev
- ./board/Marvell/db64460/sdram_init.c:1250 [error] - Invalid number of character ({) when these macros are defined: 'CONFIG_MV64460_ECC;ZUMA_NTL'.
- ./board/Marvell/db64460/sdram_init.c:1250 [error] - Invalid number of character ({) when these macros are defined: 'ZUMA_NTL'.
- ./board/bf527-ezkit/video.c:153 [error] - Uninitialized variable: dummy
- ./board/bf527-ezkit/video.c:154 [error] - Uninitialized variable: dummy
- ./board/cobra5272/cobra5272.c:43 [error] - Null pointer dereference
- ./board/cogent/lcd.c:237 [error] - Invalid number of character (() when these macros are defined: 'CONFIG_SHOW_ACTIVITY;CONFIG_STATUS_LED'.
- ./board/emk/top860/top860.c:104 [error] - Possible null pointer dereference: addr1
- ./board/eric/flash.c:985 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./board/esd/cpci750/cpci750.c:579 [error] - Possible null pointer dereference: ptr
- ./board/esd/cpci750/cpci750.c:580 [error] - Possible null pointer dereference: ptr
- ./board/esd/cpci750/mv_eth.c:248 [error] - Memory leak: dev
- ./board/esd/ocrtc/cmd_ocrtc.c:70 [error] - Null pointer dereference
- ./board/esd/pci405/cmd_pci405.c:57 [error] - Possible null pointer dereference: ptr
- ./board/esteem192e/flash.c:989 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./board/evb64260/eth.c:708 [error] - Memory leak: dev
- ./board/freescale/common/cds_pci_ft.c:49 [error] - Uninitialized variable: len
- ./board/freescale/m5249evb/m5249evb.c:93 [error] - Null pointer dereference
- ./board/freescale/m5272c3/m5272c3.c:41 [error] - Null pointer dereference
- ./board/freescale/mpc8308rdb/sdram.c:43 [error] - Null pointer dereference
- ./board/freescale/mpc8313erdb/sdram.c:41 [error] - Null pointer dereference
- ./board/freescale/mpc8315erdb/sdram.c:40 [error] - Null pointer dereference
- ./board/keymile/mgcoge/mgcoge.c:284 [error] - Uninitialized variable: psize
- ./board/mpc8540eval/mpc8540eval.c:118 [error] - Null pointer dereference
- ./board/mpc8540eval/mpc8540eval.c:121 [error] - Null pointer dereference
- ./board/mpc8540eval/mpc8540eval.c:124 [error] - Null pointer dereference
- ./board/mpc8540eval/mpc8540eval.c:127 [error] - Null pointer dereference
- ./board/muas3001/muas3001.c:286 [error] - Uninitialized variable: psize
- ./board/nc650/nand.c:65 [error] - Invalid number of character (() when these macros are defined: 'CONFIG_CMD_NAND;CONFIG_IDS852_REV2'.
- ./board/netphone/netphone.c:450 [error] - Null pointer dereference
- ./board/netphone/netphone.c:451 [error] - Null pointer dereference
- ./board/netphone/netphone.c:458 [error] - Null pointer dereference
- ./board/netphone/netphone.c:459 [error] - Null pointer dereference
- ./board/netphone/netphone.c:471 [error] - Null pointer dereference
- ./board/netphone/phone_console.c:996 [error] - Uninitialized variable: col_mask
- ./board/netstar/crcit.c:53 [error] - Resource leak: fd
- ./board/netta/codec.c:512 [error] - Array 'cmd[5]' index 5 out of bounds
- ./board/netta/codec.c:585 [error] - Array 'cmd[3]' index 3 out of bounds
- ./board/netta/codec.c:678 [error] - Array 'cmd[5]' index 5 out of bounds
- ./board/netta/netta.c:383 [error] - Null pointer dereference
- ./board/netta/netta.c:384 [error] - Null pointer dereference
- ./board/netta/netta.c:391 [error] - Null pointer dereference
- ./board/netta/netta.c:392 [error] - Null pointer dereference
- ./board/netta/netta.c:415 [error] - Null pointer dereference
- ./board/netta2/netta2.c:448 [error] - Null pointer dereference
- ./board/netta2/netta2.c:449 [error] - Null pointer dereference
- ./board/netta2/netta2.c:456 [error] - Null pointer dereference
- ./board/netta2/netta2.c:457 [error] - Null pointer dereference
- ./board/netta2/netta2.c:469 [error] - Null pointer dereference
- ./board/prodrive/p3mx/mv_eth.c:298 [error] - Memory leak: dev
- ./board/sheldon/simpc8313/sdram.c:178 [error] - Array 'buffer[135]' index 135 out of bounds
- ./board/siemens/common/fpga.c:331 [error] - Undefined behaviour: name 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.
- ./board/snmc/qs860t/flash.c:984 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./board/stx/stxxtc/stxxtc.c:444 [error] - Null pointer dereference
- ./board/stx/stxxtc/stxxtc.c:445 [error] - Null pointer dereference
- ./board/stx/stxxtc/stxxtc.c:452 [error] - Null pointer dereference
- ./board/stx/stxxtc/stxxtc.c:453 [error] - Null pointer dereference
- ./board/stx/stxxtc/stxxtc.c:460 [error] - Null pointer dereference
- ./board/stx/stxxtc/stxxtc.c:461 [error] - Null pointer dereference
- ./common/cmd_i2c.c:1507 [error] - Memory leak: device
- ./common/env_nand.c:309 [error] - Uninitialized variable: oob_buf
- ./common/hush.c:2534 [error] - Memory leak: str
- ./drivers/block/ata_piix.c:177 [error] - instance of "sata_port" object destroyed immediately
- ./drivers/block/sata_sil3114.c:812 [error] - instance of "sata_port" object destroyed immediately
- ./drivers/mtd/nand/fsl_elbc_nand.c:749 [error] - Memory leak: priv
- ./drivers/mtd/ubi/build.c:247 [error] - Possible null pointer dereference: ubi - otherwise it is redundant to check if ubi is null at line 248
- ./drivers/net/at91_emac.c:521 [error] - Memory leak: emac
- ./drivers/net/ax88180.c:722 [error] - Memory leak: dev
- ./drivers/net/bcm570x.c:523 [error] - Array 'rx_checksum[4]' index 6 out of bounds
- ./drivers/net/ks8695eth.c:129 [error] - Array 'ks8695_tx[4]' index 4 out of bounds
- ./drivers/net/ks8695eth.c:138 [error] - Array 'ks8695_rx[4]' index 4 out of bounds
- ./drivers/net/mpc512x_fec.c:670 [error] - Memory leak: bd
- ./drivers/net/natsemi.c:686 [error] - Array 'rxd[4]' index 4 out of bounds
- ./drivers/net/ns8382x.c:650 [error] - Array 'rxd[4]' index 4 out of bounds
- ./drivers/net/tsec.c:141 [error] - Memory leak: dev
- ./drivers/qe/uccf.c:380 [error] - Memory leak: uccf
- ./drivers/qe/uec.c:1355 [error] - Memory leak: dev
- ./drivers/rtc/ds1306.c:454 [error] - Uninitialized variable: din
- ./drivers/usb/host/ohci-hcd.c:1501 [error] - Memory leak: urb
- ./fs/ubifs/replay.c:239 [error] - Uninitialized variable: err
- ./fs/yaffs2/yaffs_guts.c:5894 [error] - Possible null pointer dereference: in - otherwise it is redundant to check if in is null at line 5899
- ./fs/yaffs2/yaffscfg.c:314 [error] - instance of "yaffs_stat" object destroyed immediately
- ./fs/yaffs2/yaffscfg.c:370 [error] - instance of "yaffs_stat" object destroyed immediately
- ./net/nfs.c:236 [error] - Uninitialized variable: data
- ./net/nfs.c:264 [error] - Uninitialized variable: data
- ./net/nfs.c:286 [error] - Uninitialized variable: data
- ./net/nfs.c:310 [error] - Uninitialized variable: data
- ./net/nfs.c:335 [error] - Uninitialized variable: data
- ./tools/easylogo/easylogo.c:182 [error] - Resource leak: file
- ./tools/env/fw_env.c:817 [error] - Memory leak: data
- ./tools/fit_image.c:108 [error] - Resource leak: tfd
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:19:31 +0000, based on results by cppcheck 1.46