numam-dpdk/lib/librte_ivshmem
Sergio Gonzalez Monroy cda3f638c3 ivshmem: fix crash in corner case
Depending on the configured segments it is possible to hit a
segmentation fault as a result of decrementing an unsigned index with
value 0.

To avoid it, exit the loop if the index has value 0.

Fixes: 40b966a211 ("ivshmem: library changes for mmaping using ivshmem")

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2015-06-22 18:39:40 +02:00
..
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_ivshmem_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00
rte_ivshmem.c ivshmem: fix crash in corner case 2015-06-22 18:39:40 +02:00
rte_ivshmem.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00