11
29
Fork
You've already forked ipmitool
33

ipmitool fru edit crash after new refactor. #69

Closed
opened 2025年10月05日 18:08:12 +02:00 by sebboucanada · 3 comments

Describe the bug
Since commit 6d0a28f1c3

The ipmitool fru edit does not calculate the initial fru section offset properly (using offsetof() function is not working) and crash most of the time.

For example first field of product section

ipmitool fru edit 0 field p 0 "Testing" will crash on my side.

IPMITOOL Version

Commit 6d0a28f1c3

**Describe the bug** Since commit https://codeberg.org/IPMITool/ipmitool/commit/6d0a28f1c395f59bcd713c6efccaa3ea17a684b1 The ipmitool fru edit does not calculate the initial fru section offset properly (using offsetof() function is not working) and crash most of the time. For example first field of product section ipmitool fru edit 0 field p 0 "Testing" will crash on my side. **IPMITOOL Version** Commit 6d0a28f1c395f59bcd713c6efccaa3ea17a684b1

Thanks! There is indeed a bug in pointer arithmetic there. Will fix asap.

Thanks! There is indeed a bug in pointer arithmetic there. Will fix asap.

Or maybe not... I'll need to carefully check the code anyway

Or maybe not... I'll need to carefully check the code anyway

Please check the fix in #70. It should fix the problem.

Please check the fix in #70. It should fix the problem.
Sign in to join this conversation.
No Branch/Tag specified
master
bugfix/43-Fix-timezone-and-DST-in-SEL
pages
bugfix/fix-ci-builds
feature/refactor-sdr-name-handling
cleanup/nm
feature/add-support-for-boot-mailbox
codefactor
bugfix/26
IPMITOOL_1_8_19
IPMITOOL_1_8_18
IPMITOOL_1_8_17
IPMITOOL_1_8_16
IPMITOOL_1_8_15
IPMITOOL_1_8_15RC1
IPMITOOL_1_8_14
IPMITOOL_1_8_14RC2
IPMITOOL_1_8_14RC1
ipmitool
IPMITOOL_1_8_13
IPMITOOL_1_8_13RC1
IPMITOOL_1_8_12
IPMITOOL_1_8_9
IPMITOOL_1_8_8
IPMITOOL_1_8_7
IPMITOOL_1_8_6
IPMITOOL_1_8_5
IPMITOOL_1_8_0
IPMITOOL_S10_U1
IPMITOOL_1_6_1
IPMITOOL_1_6_0
IPMITOOL_1_5_9
IPMITOOL_1_5_8
IPMITOOL_1_5_7
IPMITOOL_1_5_6
IPMITOOL_1_5_4
IPMITOOL_1_4_1_1
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
IPMITool/ipmitool#69
Reference in a new issue
IPMITool/ipmitool
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?