numam-dpdk/lib/librte_eal
Sergio Gonzalez Monroy d4ee3c61c0 mem: fix possible integer overflow
It is possible to get an integer overflow if we try to reserve a memzone
with len = 0 (meaning the maximum contiguous space available) and the
maximum available elem size is less than (MALLOC_ELEM_OVERHEAD + align).

Coverity issue: 107111

Fixes: fafcc11985 ("mem: rework memzone to be allocated by malloc")

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2016-06-20 10:54:57 +02:00
..
bsdapp eal: fix thread naming on FreeBSD 2016-06-17 18:04:22 +02:00
common mem: fix possible integer overflow 2016-06-20 10:54:57 +02:00
linuxapp eal/linux: fix build with glibc < 2.12 2016-06-20 10:14:21 +02:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00