numam-dpdk/lib/librte_eal
Anatoly Burakov 0af8db3172 malloc: fix out-of-bounds segment array access
Technically, while the pointer would've been invalid if msl_idx
were invalid, we wouldn't have actually attempted to access the
pointer until verifying the index. Fix it by moving array access
to after we've verified validity of the index.

Coverity issue: 272574
Fixes: 66cc45e293 ("mem: replace memseg with memseg lists")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
2018-04-27 23:52:51 +02:00
..
bsdapp vfio: add multi container support 2018-04-27 15:54:55 +01:00
common malloc: fix out-of-bounds segment array access 2018-04-27 23:52:51 +02:00
linuxapp mem: fix page fault trigger 2018-04-27 23:42:40 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build eal: provide API for querying valid socket ids 2018-04-05 00:27:13 +02:00
rte_eal_version.map vfio: add multi container support 2018-04-27 15:54:55 +01:00