haiku/src
Michael Lotz a264790727 writembr: Fix too short MBR due to wrong compile flags.
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.
2014-10-29 22:49:55 +01:00
..
add-ons packagefs: Package::Open(): Also log error code 2014-10-29 16:06:01 +01:00
apps Debugger: Implement expression variable value resolution. 2014-10-29 17:41:54 -04:00
bin writembr: Fix too short MBR due to wrong compile flags. 2014-10-29 22:49:55 +01:00
build os/support: implement atomic_*() using GCC builtin helpers 2014-08-25 23:05:07 +02:00
data Add MIME type for LZip archive files 2014-10-27 23:49:33 +01:00
documentation
kits B*Format: make immutable and remove locking 2014-10-27 14:08:42 +01:00
libs freebsd_network: Check non-packaged data dir for firmware. 2014-10-18 18:48:19 +02:00
preferences Sounds: zoom to fit instead of going fullscreen. 2014-10-29 10:55:04 +01:00
servers Notifications: use a single settings file. 2014-10-21 18:53:06 +02:00
system Increase the size of the kernel FD table 2014-10-29 21:07:03 +01:00
tests NetworkSetup: move renegociate and disable buttons to HardwareView 2014-10-29 22:22:16 +01:00
tools fs_shell: Added missing new permission check function. 2014-10-25 19:31:15 +02:00
Jamfile