diff options
author | wdenk <wdenk> | 2004-03-17 01:13:07 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-03-17 01:13:07 +0000 |
commit | 7d7ce4125f769a21a321c3df972272c5854d54f7 (patch) | |
tree | ca95548f218169750a0b3d3ddf72e3464d9f8d0d /include | |
parent | d9df1f4e662441c487f96a4e1f91caa9297afdd9 (diff) | |
download | u-boot-imx-7d7ce4125f769a21a321c3df972272c5854d54f7.zip u-boot-imx-7d7ce4125f769a21a321c3df972272c5854d54f7.tar.gz u-boot-imx-7d7ce4125f769a21a321c3df972272c5854d54f7.tar.bz2 |
Patch by Pierre Aubert, 15 Mar 2004:
Fix buffer overflow in IDE identification
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/IceCube.h | 1 | ||||
-rw-r--r-- | include/part.h | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/configs/IceCube.h b/include/configs/IceCube.h index 37c76c3..38db440 100644 --- a/include/configs/IceCube.h +++ b/include/configs/IceCube.h @@ -89,7 +89,6 @@ #if 1 #define CONFIG_USB_OHCI #define ADD_USB_CMD CFG_CMD_USB | CFG_CMD_FAT -#define CONFIG_DOS_PARTITION #define CONFIG_USB_STORAGE #else #define ADD_USB_CMD 0 diff --git a/include/part.h b/include/part.h index 73000a7..5282c85 100644 --- a/include/part.h +++ b/include/part.h @@ -37,9 +37,9 @@ typedef struct block_dev_desc { #endif unsigned long lba; /* number of blocks */ unsigned long blksz; /* block size */ - unsigned char vendor[40]; /* IDE model, SCSI Vendor */ - unsigned char product[20]; /* IDE Serial no, SCSI product */ - unsigned char revision[8]; /* firmware revision */ + unsigned char vendor [40+1]; /* IDE model, SCSI Vendor */ + unsigned char product[20+1]; /* IDE Serial no, SCSI product */ + unsigned char revision[8+1]; /* firmware revision */ unsigned long (*block_read)(int dev, unsigned long start, unsigned long blkcnt, |