Don't assume packets will be no larger than ISERIES_MAX_PACKET_LEN.
authorGuy Harris <guy@alum.mit.edu>
Mon, 2 May 2016 00:52:45 +0000 (17:52 -0700)
committerGuy Harris <guy@alum.mit.edu>
Mon, 2 May 2016 00:53:16 +0000 (00:53 +0000)
commit6332c2f45e5f0b23893a41def45384911f28109a
tree75b6f44dd1c4abb385230f71015efe73a2ef1000
parent7666361bf968057e400d3e73ccc12723707e3646
Don't assume packets will be no larger than ISERIES_MAX_PACKET_LEN.

We don't check against it.  Insteead, use phdr->caplen as the buffer
size; that's based on the number of hex digits we've found.

While we're at it, also get rid of ISERIES_PKT_ALLOC_SIZE - it makes it
less obvious that it's based on the packet length from the packet
header.

Change-Id: I8ad6306c62e7bc4cf896b335f39a5a77780fb2ea
Reviewed-on: https://code.wireshark.org/review/15236
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/iseries.c