[dpdk-dev] [PATCH] ivshmem: fix segmentation fault in corner case

2015-06-22 Thread Thomas Monjalon
2015-06-18 13:27, Sergio Gonzalez Monroy: > 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. > > Signed-off-by: Sergio Gonzalez Monroy Applied,

[dpdk-dev] [PATCH] ivshmem: fix segmentation fault in corner case

2015-06-18 Thread Sergio Gonzalez Monroy
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. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_ivshmem/rte_ivshmem.c | 2 ++ 1 file changed, 2 i