ip_frag: fix build with gcc 5.1
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 29 May 2015 14:34:14 +0000 (15:34 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 2 Jun 2015 16:24:28 +0000 (18:24 +0200)
commit3d877053c0b88f3fc3636ab871f7afd89626aea8
tree40bec62e85fee22ef637f224f91b76ba8c9a1abf
parentb34141b284f07eff7e04ed7dd0302b2e4dc3c7d9
ip_frag: fix build with gcc 5.1

On Fedora 22, with GCC 5.1, errors are reported due to array accesses
being potentially out of bounds. This commit fixes this by adding in an
extra bounds check to the loop counter.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_ip_frag/ip_frag_common.h