diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-03-01 11:00:21 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-05-20 15:24:17 -0700 |
commit | b90f05086153585d6e318fa1fbf03bbc0a6e86d0 (patch) | |
tree | 726901f79ef141c4b46ff039aee0b576334053d5 | |
parent | 538e03004ccf4e1d20bfe6b033ff703b63f0b68f (diff) | |
download | tcpdump-b90f05086153585d6e318fa1fbf03bbc0a6e86d0.tar.gz |
Don't run past the snaplength when printing a packet with a too-short LI.
Fixes GitHub issue #437.
-rw-r--r-- | print-isoclns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-isoclns.c b/print-isoclns.c index bc710e4a..67d5215b 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -1057,7 +1057,7 @@ esis_print(netdissect_options *ndo, if (li < sizeof(struct esis_header_t) + 2) { ND_PRINT((ndo, " length indicator < min PDU size %d:", li)); - while (--length != 0) + while (pptr < ndo->ndo_snapend) ND_PRINT((ndo, "%02X", *pptr++)); return; } |