<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openslx-ng/ipxe.git/src/tests/iobuf_test.c, branch v1.20.1</title>
<subtitle>Fork of ipxe; additional commands and features</subtitle>
<id>https://git.openslx.org/openslx-ng/ipxe.git/atom/src/tests/iobuf_test.c?h=v1.20.1</id>
<link rel='self' href='https://git.openslx.org/openslx-ng/ipxe.git/atom/src/tests/iobuf_test.c?h=v1.20.1'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/'/>
<updated>2016-02-11T19:04:23+00:00</updated>
<entry>
<title>[iobuf] Improve robustness of I/O buffer allocation</title>
<updated>2016-02-11T19:04:23+00:00</updated>
<author>
<name>Michael Brown</name>
</author>
<published>2016-02-11T18:44:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/ipxe.git/commit/?id=12b3b578869d5c25a32edd81950e104a286643d7'/>
<id>urn:sha1:12b3b578869d5c25a32edd81950e104a286643d7</id>
<content type='text'>
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 &lt;mcb30@ipxe.org&gt;
</content>
</entry>
</feed>
