Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
82b7991
)
ip: fix overflow in ip6_ext_header_walk
42/35542/2
author
Benoît Ganne
<bganne@cisco.com>
Thu, 24 Feb 2022 15:17:52 +0000
(16:17 +0100)
committer
Neale Ranns
<neale@graphiant.com>
Fri, 4 Mar 2022 15:57:12 +0000
(15:57 +0000)
ip6_ext_hdr_chain_t->eh is IP6_EXT_HDR_MAX elements.
Type: fix
Change-Id: I28b8d610d8f5c0c520c8391c37b86e837655ab12
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/ip/ip6_packet.h
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip6_packet.h
b/src/vnet/ip/ip6_packet.h
index
b00eac7
..
e71604c
100644
(file)
--- a/
src/vnet/ip/ip6_packet.h
+++ b/
src/vnet/ip/ip6_packet.h
@@
-652,7
+652,7
@@
ip6_ext_header_walk (vlib_buffer_t *b, ip6_header_t *ip, int find_hdr_type,
i++;
if (last)
break;
- if (i > IP6_EXT_HDR_MAX)
+ if (i >
=
IP6_EXT_HDR_MAX)
break;
next_header = ip6_ext_next_header_s (next_proto, next_header, max_offset,
&offset, &next_proto, &last);