diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-07-08 22:23:26 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-07-08 22:23:26 +0000 |
commit | be97290991e5bcb175bd4a3a67e70cbd22a3f85f (patch) | |
tree | e10e2ec13ac7b6487035cbbb7b1fd5158b8fc790 /wiretap/i4btrace.c | |
parent | feac4247dbe57834d52ce459bf02bb9e64695f2e (diff) |
Tighten heuristics a bit: traces with packets longer than 16k are no good (is this a valid limit?)
svn path=/trunk/; revision=25679
Diffstat (limited to 'wiretap/i4btrace.c')
-rw-r--r-- | wiretap/i4btrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/i4btrace.c b/wiretap/i4btrace.c index 97515ddf94..02a9b0db47 100644 --- a/wiretap/i4btrace.c +++ b/wiretap/i4btrace.c @@ -49,9 +49,9 @@ static void i4btrace_close(wtap *wth); * Test some fields in the header to see if they make sense. */ #define I4B_HDR_IS_OK(hdr) \ - (!((unsigned)hdr.length < 3 || (unsigned)hdr.unit > 4 || \ - (unsigned)hdr.type > 4 || (unsigned)hdr.dir > 2 || \ - (unsigned)hdr.trunc > 2048)) + (!((unsigned)hdr.length < 3 || (unsigned)hdr.length > 16384 || \ + (unsigned)hdr.unit > 4 || (unsigned)hdr.type > 4 || \ + (unsigned)hdr.dir > 2 || (unsigned)hdr.trunc > 2048)) int i4btrace_open(wtap *wth, int *err, gchar **err_info _U_) { |