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
..
2014-08-08 22:40:37 +02:00
2014-08-13 13:32:44 +02:00
2014-01-10 22:32:21 +01:00
2014-08-13 13:32:44 +02:00
2014-01-17 04:06:15 +01:00
2014-08-13 13:50:29 +02:00
2014-08-13 13:32:44 +02:00
2013-08-01 08:54:06 +02:00
2013-12-14 08:27:21 +01:00
2014-10-28 02:36:25 +01:00
2013-08-01 08:54:06 +02:00
2013-08-01 08:54:06 +02:00
2014-08-13 13:32:44 +02:00
2014-08-13 23:18:50 +02:00
2013-03-05 11:04:59 -05:00
2013-08-01 08:54:06 +02:00
2014-08-13 13:32:44 +02:00
2014-08-13 13:50:29 +02:00
2014-08-13 13:32:44 +02:00
2014-06-11 11:42:41 +02:00
2014-08-08 22:40:37 +02:00
2014-08-13 13:32:44 +02:00
2014-08-13 13:32:44 +02:00
2014-10-21 12:57:20 +00:00
2014-08-13 13:32:44 +02:00
2014-08-13 13:32:44 +02:00
2014-10-26 13:41:00 +01:00
2014-08-13 13:32:44 +02:00
2014-08-13 13:32:44 +02:00
2014-10-13 15:06:47 +02:00
2014-08-13 13:50:29 +02:00
2014-10-29 22:49:55 +01:00
2013-10-13 09:11:31 -04:00
2014-07-03 17:39:59 +02:00
2014-07-15 15:34:36 -04:00
2013-02-16 14:07:00 -05:00
2014-07-04 14:39:03 +02:00
2013-08-28 00:36:27 +02:00
2012-09-15 12:38:38 +02:00
2014-10-01 18:13:35 +02:00
2014-06-23 22:58:15 +02:00
2014-08-08 22:40:37 +02:00
2013-10-19 18:05:53 +02:00
2014-04-20 09:44:00 +02:00
2013-11-07 19:03:47 +01:00
2013-11-17 02:09:37 +01:00
2014-08-08 22:40:37 +02:00
2014-10-10 16:32:04 +02:00
2014-09-06 23:57:46 +02:00
2014-06-30 12:08:40 -04:00
2012-11-06 00:45:53 -05:00
2014-07-15 14:46:27 -04:00
2014-08-08 22:40:37 +02:00
2013-11-22 12:24:13 +01:00
2014-08-08 22:40:37 +02:00
2013-03-10 22:28:23 +01:00
2014-08-08 22:40:37 +02:00
2013-12-10 21:25:15 +01:00
2013-11-30 17:02:49 +01:00
2013-05-10 19:44:51 +02:00
2013-05-10 19:46:29 +02:00
2014-08-19 13:28:54 -04:00
2014-03-06 09:27:43 +01:00
2014-08-08 22:40:37 +02:00
2014-01-17 04:06:15 +01:00
2014-08-13 23:18:50 +02:00
2014-08-08 22:40:37 +02:00
2013-02-16 14:07:00 -05:00
2014-07-03 17:39:59 +02:00
2012-11-10 00:51:23 +01:00
2013-12-16 04:53:46 +01:00
2013-04-05 19:26:41 -04:00