aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/mime_file.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-06-09 18:27:11 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-06-09 18:27:11 +0000
commit90e539b55f72ae42a753b008220086aa69c22087 (patch)
tree30ddbcd0201693397c260a7d6fc9fbc13a721b33 /wiretap/mime_file.c
parent08dcc378489904543fec2414a3fa0245f08259b7 (diff)
downloadwireshark-90e539b55f72ae42a753b008220086aa69c22087.tar.gz
wireshark-90e539b55f72ae42a753b008220086aa69c22087.tar.bz2
wireshark-90e539b55f72ae42a753b008220086aa69c22087.zip
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. svn path=/trunk/; revision=37633
Diffstat (limited to 'wiretap/mime_file.c')
0 files changed, 0 insertions, 0 deletions