Wireshark-dev: [Wireshark-dev] PCAP-NG files being corrupted by fuzz tester
From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Fri, 02 Mar 2012 17:36:14 -0500
The fuzz tester keeps failing with this file:

    /home/wireshark/menagerie/menagerie/6550-iPhone_connection_and_SSH_session.cap:
 ERROR
Processing failed.  Capture info follows:

  Output file: /dev/shm/buildbot/clangcodeanalysis/menagerie-fuzz/fuzz-2012-03-02-17845.pcap
stderr follows:

tshark: The file "/dev/shm/buildbot/clangcodeanalysis/menagerie-fuzz/fuzz-2012-03-02-17845.pcap" appears to be damaged or corrupt.
(pcapng: interface index 1 is not less than interface count 1.)

The source file itself is fine (well it no longer aborts for me after r41325), but running it through the fuzz tester fails every time. Looks like editcap needs some PCAPNG smarts to avoid corrupting the non-packet parts. (Or Wiretap needs to not give the non-packet parts to editcap.)