As described in #69, fru edit crashed after commit 6d0a28f1c3.
It was identified that the reason was in wrong declaration of FRU area related structures that the aforementioned commit have optimistically used.
Also, a couple of out-of-bounds errors in the FRU modification code were found with valgrind and fixed with this PR.
As described in #69, `fru edit` crashed after commit 6d0a28f1c3.
It was identified that the reason was in wrong declaration of FRU area related structures that the aforementioned commit have optimistically used.
Also, a couple of out-of-bounds errors in the FRU modification code were found with valgrind and fixed with this PR.