mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Fix a crash related to a broken IPv6 chain
This commit is contained in:
parent
8dc641f63f
commit
95029bd471
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ static VectorValPtr BuildOptionsVal(const u_char* data, int len)
|
|||
{
|
||||
// PadN or other option
|
||||
uint16_t off = 2 * sizeof(uint8_t);
|
||||
|
||||
if ( len < opt->ip6o_len + off )
|
||||
break;
|
||||
|
||||
rv->Assign(1, opt->ip6o_len);
|
||||
rv->Assign(2, new String(data + off, opt->ip6o_len, true));
|
||||
data += opt->ip6o_len + off;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue