[LinuxBIOS] [PATCH] LAR checksums

Alex Beregszaszi alex at rtfs.hu
Thu Sep 6 03:23:41 CEST 2007


Hi,

checksum-fix.diff fixes a checksum calculation bug in the lar utility,
where it would checksum less bytes then desired.

lar-check-sum.diff implements checksum checking in the runtime lar code.

I implemented the check inside the filename check, thus it wont be
executed on unneeded entries. As my assumption was that I cant modify
the memory, the code is skipping bytes between 20-24 of the header
(checksum field) to generate a correct sum.

This is bad, as the numbers shall be updated at every lar structure
change. This is good, as we are not writing to memory.

--
Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: checksum-fix.diff
Type: text/x-patch
Size: 449 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070906/f83cd90d/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lar-check-sum.diff
Type: text/x-patch
Size: 1007 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070906/f83cd90d/attachment-0001.diff>


More information about the coreboot mailing list