diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-05 21:27:31 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-05 21:28:47 +0100 |
commit | 4e9236f4775393c3dde064e8d6b3230a4ef47a00 (patch) | |
tree | eab924f0ccfd5c2e3f118b3538c25f15da865526 /signature.c | |
parent | 9f1e5edac5318dc2bacc6c96e61af2a2050d27ef (diff) | |
download | tcpdump-4e9236f4775393c3dde064e8d6b3230a4ef47a00.tar.gz |
Fix two bounds checks in signature_verify()
Diffstat (limited to 'signature.c')
-rw-r--r-- | signature.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/signature.c b/signature.c index 2091afb3..204e3456 100644 --- a/signature.c +++ b/signature.c @@ -130,7 +130,7 @@ signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, /* * Do we have all the packet data to be checked? */ - if (!ND_TTEST2(pptr, plen)) { + if (!ND_TTEST2(*pptr, plen)) { /* No. */ return (CANT_CHECK_SIGNATURE); } @@ -138,7 +138,7 @@ signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, /* * Do we have the entire signature to check? */ - if (!ND_TTEST2(sig_ptr, sizeof(sig))) { + if (!ND_TTEST2(*sig_ptr, sizeof(sig))) { /* No. */ return (CANT_CHECK_SIGNATURE); } |