numam-dpdk/lib/librte_eal/common
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
..
arch eal/arm: check support of armv8.1 atomics 2016-03-05 19:46:50 +01:00
include eal: fix thread naming on FreeBSD 2016-06-17 18:04:22 +02:00
eal_common_cpuflags.c eal: remove compiler optimization workaround 2016-02-16 08:28:00 +01:00
eal_common_dev.c eal: fix C++ build 2015-10-22 17:50:51 +02:00
eal_common_devargs.c eal: fix argument parsing check 2016-06-20 10:44:43 +02:00
eal_common_errno.c eal: remove useless errno 2015-03-10 12:17:31 +01:00
eal_common_hexdump.c eal: fix whitespace 2015-06-12 11:10:10 +02:00
eal_common_launch.c eal: fix whitespace 2015-06-12 11:10:10 +02:00
eal_common_lcore.c eal: increase log level of some messages 2016-05-02 15:31:17 +02:00
eal_common_log.c log: deprecate history dump 2016-06-10 15:08:57 +02:00
eal_common_memory.c eal: decrease log level of some debug messages 2016-03-13 23:44:35 +01:00
eal_common_memzone.c mem: fix possible integer overflow 2016-06-20 10:54:57 +02:00
eal_common_options.c log: increase default level to info 2016-05-02 15:31:17 +02:00
eal_common_pci_uio.c pci: fix resource release when unmapping 2016-06-20 10:46:04 +02:00
eal_common_pci.c pci: support class id probing 2016-06-14 16:50:36 +02:00
eal_common_proc.c eal: check if primary process is alive 2016-03-09 16:13:09 +01:00
eal_common_string_fns.c
eal_common_tailqs.c log: use simple macro 2015-07-30 20:16:04 +02:00
eal_common_thread.c eal: clean up export of socket id variable 2015-03-02 19:40:20 +01:00
eal_common_timer.c eal: decrease log level of some debug messages 2016-03-13 23:44:35 +01:00
eal_filesystem.h eal: fix header guards 2014-11-25 13:30:23 +01:00
eal_hugepages.h eal: fix header guards 2014-11-25 13:30:23 +01:00
eal_internal_cfg.h doc: fix doxygen syntax of some comments 2015-11-04 11:56:37 +01:00
eal_options.h eal: move plugin loading from linuxapp to common 2015-11-12 16:53:22 +01:00
eal_private.h log: deprecate history dump 2016-06-10 15:08:57 +02:00
eal_thread.h eal: thread affinity API 2015-02-24 20:22:24 +01:00
Makefile eal: add keep alive monitoring 2015-11-19 15:44:51 +01:00
malloc_elem.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
malloc_elem.h remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
malloc_heap.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
malloc_heap.h mem: rework memzone to be allocated by malloc 2015-07-16 13:59:24 +02:00
rte_keepalive.c keepalive: add liveness callback 2016-06-16 18:25:48 +02:00
rte_malloc.c mem: rework memzone to be allocated by malloc 2015-07-16 13:59:24 +02:00