]> xenbits.xensource.com Git - seabios.git/commit
coreboot: Check for unaligned cbfs header
authorKevin O'Connor <kevin@koconnor.net>
Tue, 12 Jan 2016 18:36:50 +0000 (13:36 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 12 Jan 2016 18:36:50 +0000 (13:36 -0500)
commit3e8d75f3bef0f36a807303d58523ef5eba4a386f
treea3baa6129e752f5c5bb62736efb609a36b5605b1
parent44250252eeaefd5e81bae2f73639bd323682217b
coreboot: Check for unaligned cbfs header

If the CBFS header is invalid and points to 0xffffffff it could cause
SeaBIOS to read past the 4GB boundary and cause an exception.  Check
the alignment of the header pointer before attempting to access fields
within the header.

Reported-by: "Alex G." <mr.nuke.me@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/fw/coreboot.c