diff options
| author | Patrick Venture <venture@google.com> | 2018-11-26 12:38:04 -0800 |
|---|---|---|
| committer | Alexander Amelkin <mocbuhtig@amelkin.msk.ru> | 2019-02-13 21:28:14 +0300 |
| commit | 6d515dd06bcb89598465cc69e89e37684577e289 (patch) | |
| tree | 4d10ad59ef93867e42b5dc8e4aa104c653b221f0 /include/ipmitool/ipmi_fru.h | |
| parent | 7941806a9b7470e503d59f20713ef36269381ed2 (diff) | |
| download | ipmitool-6d515dd06bcb89598465cc69e89e37684577e289.tar.gz | |
fru: fixup array bounds checking
Fixup the following array bounds checking bugs:
[lib/ipmi_fru.c:1003]: (style) Array index 'i' is
used before limits check.
[lib/ipmi_fru.c:1127]: (style) Array index 'i' is
used before limits check.
[lib/ipmi_fru.c:1262]: (style) Array index 'i' is
used before limits check.
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'include/ipmitool/ipmi_fru.h')
| -rw-r--r-- | include/ipmitool/ipmi_fru.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ipmitool/ipmi_fru.h b/include/ipmitool/ipmi_fru.h index 7ea14d6..b0f183c 100644 --- a/include/ipmitool/ipmi_fru.h +++ b/include/ipmitool/ipmi_fru.h @@ -42,6 +42,8 @@ # include <config.h> #endif +#define FRU_END_OF_FIELDS 0xc1 + #define GET_FRU_INFO 0x10 #define GET_FRU_DATA 0x11 #define SET_FRU_DATA 0x12 |
