summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2016-02-06 11:20:57 +0100
committerMichael Brown2016-02-06 11:47:45 +0100
commite2b1140486e6d5da756d64ae5fc051b79664c6d6 (patch)
tree7faa50761bab74dde05e17212cfff9748a8d041c /src/tests
parent[ehci] Add extra debugging information (diff)
downloadipxe-e2b1140486e6d5da756d64ae5fc051b79664c6d6.tar.gz
ipxe-e2b1140486e6d5da756d64ae5fc051b79664c6d6.tar.xz
ipxe-e2b1140486e6d5da756d64ae5fc051b79664c6d6.zip
[malloc] Guard against unsigned integer overflow
Commit f3fbb5f ("[malloc] Avoid integer overflow for excessively large memory allocations") fixed signed integer overflow issues caused by the use of ssize_t, but did not guard against unsigned integer overflow. Add explicit checks for unsigned integer overflow where needed. As a side bonus, erroneous calls to malloc_dma() with an (illegal) size of zero will now fail cleanly. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions