diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-02-22 18:32:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-02-22 18:32:43 +0000 |
commit | 3b262a0621da12d7965d1f2126f48ef30baddab2 (patch) | |
tree | f1b8cca50dc50f2f1086274bd53e6fc33d9de1b3 /diameter | |
parent | 0ebef9a0fa8523003e178a42798d0aabffc9b30d (diff) |
Add sanity checks to make sure the claimed block size is big enough to:
1) contain the block length fields and block type field;
2) contain that plus the fixed-length portion of the block;
3) for blocks that have a variable-length portion other than the
options, contain that variable-length portion.
Fixes a crash we're seeing with a bad pcap-NG file in the Wireshark
menagerie (7799-lastPacketWithoutComment.pcapng - the last packet's
block length is 128, but it claims to have 98 bytes of packet data,
which requires a 132-byte block).
Clean up white space (use 8-space tabs).
svn path=/trunk/; revision=41143
Diffstat (limited to 'diameter')
0 files changed, 0 insertions, 0 deletions