fix ipmitool crash with fru edit
First rebase
#1 with latest master
Then fix remaining issue:
fru edit command can increase fru size. Allocate new fru data with
the bigger size. This fixes ipmitool crash when fru edit increases fru
size.
Tested:
fru edit command that increases fru size complete successfully.
fix ipmitool crash with fru edit
First rebase
https://codeberg.org/IPMITool/ipmitool/pulls/1 with latest master
Then fix remaining issue:
fru edit command can increase fru size. Allocate new fru data with
the bigger size. This fixes ipmitool crash when fru edit increases fru
size.
Tested:
fru edit command that increases fru size complete successfully.