a264790727
The compile flags were set so that only the boot code itself would be produced, excluding the (dummy) partition table and signature. The code in writembr still assumed that the MBR would be 512 bytes however and therefore access the data array out of bounds. Fix flags to produce the full 512 byte MBR sector and add a STATIC_ASSERT so that the size assumption is checked on compilation. Also fix a typo in mbr.nasm, mostly to trigger re-generation of the MBR data that one would otherwise need to remove manually... The two out of bounds array accesses were pointed out by CID 1249923 and CID 1249924, the insufficiently large target buffer of the memcpy by CID 1249901. |
||
---|---|---|
.. | ||
add-ons | ||
apps | ||
bin | ||
build | ||
data | ||
documentation | ||
kits | ||
libs | ||
preferences | ||
servers | ||
system | ||
tests | ||
tools | ||
Jamfile |