mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ekanalyzer: Fix internal use area off-by-one bug
The length of internal use area printed by ekanalyzer didn't take in account the version byte. The data printed was also 1 byte longer than needed. Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
This commit is contained in:
parent
1f429f1ed7
commit
9a1c0e68ba
@ -2488,6 +2488,8 @@ ipmi_ek_display_fru_header_detail(char *filename)
|
|||||||
*/
|
*/
|
||||||
if (next_offset < UINT8_MAX) {
|
if (next_offset < UINT8_MAX) {
|
||||||
len = (next_offset - header.offset.internal) * FACTOR_OFFSET;
|
len = (next_offset - header.offset.internal) * FACTOR_OFFSET;
|
||||||
|
--len; /* First byte of internal use area is version and we've
|
||||||
|
already read it */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
struct stat fs;
|
struct stat fs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user