[coreboot] Infinite loop in cbfstool

Patrick Georgi patrick.georgi at coresystems.de
Fri Sep 18 20:04:58 CEST 2009

Am Freitag, den 18.09.2009, 11:36 -0600 schrieb Myles Watson:
> If you try to add a payload that is larger than the available space, and not
> at a specific location (location == 0), it hangs in an infinite loop.  It's
> something like:
Good find, thanks!

> if contentsize <= length or location is right {
> 	insert record
> }
> if location == 0
> 	continue.
> I wasn't sure where the best place to put the increment of current was.  Do
> you have any suggestions?
Primitive solution: duplicate the increment? (see patch)

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20090918-1-endless-loop
Type: text/x-patch
Size: 578 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090918/f858e3cb/attachment.diff>

More information about the coreboot mailing list