Michael Brown
12b3b57886
[iobuf] Improve robustness of I/O buffer allocation
...
Guard against various corner cases (such as zero-length buffers, zero
alignments, and integer overflow when rounding up allocation lengths
and alignments) and ensure that the struct io_buffer is correctly
aligned even when the caller requests a non-zero alignment for the I/O
buffer itself.
Add self-tests to verify that the resulting alignments and lengths are
correct for a range of allocations.
Signed-off-by: Michael Brown <mcb30@ipxe.org >
2016-02-11 19:04:23 +00:00
..
2008-08-28 23:52:19 +01:00
2015-07-27 17:25:37 +01:00
2015-04-24 14:41:32 +01:00
2015-04-24 15:32:04 +01:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-07-27 16:04:38 +01:00
2015-07-27 16:04:38 +01:00
2015-03-05 00:59:38 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-04-12 17:01:10 +01:00
2015-04-12 17:01:10 +01:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2010-04-19 23:43:39 +01:00
2009-02-15 10:59:53 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2016-02-11 19:04:23 +00:00
2015-07-28 13:48:29 +01:00
2015-03-02 14:17:31 +00:00
2015-07-28 16:59:11 +01:00
2015-03-02 14:17:31 +00:00
2015-03-16 15:40:53 +00:00
2015-04-12 17:01:10 +01:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-03-05 00:59:38 +00:00
2015-07-28 15:22:26 +01:00
2015-08-21 16:25:11 +01:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-03-02 14:17:31 +00:00
2015-04-07 06:40:46 +01:00
2015-08-25 13:31:46 +01:00
2015-04-12 17:01:10 +01:00
2015-04-12 17:01:10 +01:00
2015-04-12 17:02:11 +01:00
2015-03-02 14:17:31 +00:00
2015-09-10 14:46:54 +01:00
2015-03-02 14:17:31 +00:00
2016-02-11 19:04:23 +00:00
2015-03-02 14:17:31 +00:00
2010-08-16 16:54:03 +01:00
2016-01-26 16:16:13 +00:00
2015-03-02 14:17:31 +00:00
2015-03-05 00:59:38 +00:00