Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] rev 41152: /trunk/wiretap/ /trunk/wiretap/: pcapng.c

Date: Thu, 23 Feb 2012 10:03:17 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=41152

User: guy
Date: 2012/02/23 02:03 AM

Log:
 Do a check of the block total length in pcapng_read_unknown_block().
 
 That means we don't need to do the block length check in
 pcapng_read_block(); each block type reader, including the one for
 unknown block types, does a check that's as stringent as that block
 length check or more stringent, which means any block whose length is
 less than the minimum will fail with the same error in both cases.
 
 Fix the message for a too-short NRB.

Directory: /trunk/wiretap/
  Changes    Path          Action
  +8 -15     pcapng.c      Modified