opengnsys_ipxe/src
Michael Brown e2b1140486 [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>
2016-02-06 10:47:45 +00:00
..
arch [i386] Add check_bios_interrupts() debug function 2016-01-12 08:27:59 +00:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [build] Add named configuration for public cloud environments 2016-01-18 08:37:27 +00:00
core [malloc] Guard against unsigned integer overflow 2016-02-06 10:47:45 +00:00
crypto [ocsp] Avoid including a double path separator in request URI 2016-01-21 17:50:34 +00:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [ehci] Add extra debugging information 2016-02-05 21:03:17 +00:00
hci [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-05 11:40:13 +00:00
image [efi] Add support for EFI_GRAPHICS_OUTPUT_PROTOCOL frame buffer consoles 2015-10-16 16:38:41 +01:00
include [tcp] Guard against malformed TCP options 2016-01-27 23:06:50 +00:00
interface [usb] Allow USB endpoints to specify a reserved header length for refills 2016-01-19 00:01:11 +00:00
libgcc [build] Mark __intel_new_proc_init with __libgcc rather than cdecl 2009-08-03 15:56:10 +01:00
net [slam] Avoid potential division by zero 2016-01-27 23:27:47 +00:00
tests [uri] Apply URI decoding for all parsed URIs 2016-01-26 16:16:13 +00:00
usr [autoboot] Fix incorrect boolean logic 2016-01-19 08:16:17 +00:00
util [efi] Add %.usb target for building EFI-bootable USB (or other) disk images 2015-12-07 13:08:22 +00:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
Makefile [crypto] Support SHA-{224,384,512} in X.509 certificates 2015-08-02 16:54:24 +01:00
Makefile.housekeeping [debug] Allow debug colourisation to be disabled 2016-01-12 15:39:14 +00:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00