diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-18 13:01:43 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-18 13:01:43 +0100 |
commit | 1af717b1ac96012ce65ed1e3568b2b4d7a15b972 (patch) | |
tree | ec9b925dbf2ce8e9ed4b97b566da41851e991ccd /print-smb.c | |
parent | 5fc11e8d2fa0fc3217b7705866db11a88aee97fa (diff) | |
download | tcpdump-1af717b1ac96012ce65ed1e3568b2b4d7a15b972.tar.gz |
SMB: Add two missing bounds checks
Diffstat (limited to 'print-smb.c')
-rw-r--r-- | print-smb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/print-smb.c b/print-smb.c index 247b97f4..f6914913 100644 --- a/print-smb.c +++ b/print-smb.c @@ -945,7 +945,9 @@ nbt_tcp_print(netdissect_options *ndo, if (caplen < 4) goto trunc; maxbuf = data + caplen; + ND_TCHECK_1(data); type = EXTRACT_U_1(data); + ND_TCHECK_2(data + 2); nbt_len = EXTRACT_BE_U_2(data + 2); length -= 4; caplen -= 4; |