http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=37633
User: morriss
Date: 2011/06/09 11:27 AM
Log:
Simplify timestamp checking: only check the packet's timestamp if
check_startstop is set.
Refuse to write packets that do not fit in the file type we're writing. This
allows fuzz testing to be done on JPEGs without generating bogus files (with
packets bigger than the maximum packet size). This fixes
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6010 .
Note that this is only a problem with editcap is run with -T to force the
encapsulation type.
Maybe this needs a more generic solution (e.g., should this check be done in
the wiretap routines?), but at least for now it'll pacify the buildbot.
Directory: /trunk/
Changes Path Action
+10 -4 editcap.c Modified