Skip to content

Commit d76dc9f

Browse files
committed
IEEE 802.15.4: Add a bounds check
This avoids to have cp (current pointer on packet data) > ndo->ndo_snapend in hex_and_ascii_print(), via ndo_default_print(), via ND_DEFAULTPRINT(), in some cases.
1 parent 346ea98 commit d76dc9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

print-802_15_4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,7 @@ ieee802_15_4_std_frames(netdissect_options *ndo,
20212021
if (len < 0) {
20222022
return 0;
20232023
}
2024+
ND_TCHECK_LEN(p, len);
20242025
p += len;
20252026
caplen -= len;
20262027
} else {

0 commit comments

Comments
 (0)