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

Wireshark-bugs: [Wireshark-bugs] [Bug 7467] pcapng - mergecap aborts with "Floating point except

Date: Tue, 10 Jul 2012 21:01:26 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7467

Guy Harris <guy@xxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|Extras                      |Capture file support
                   |                            |(libwiretap)
           Platform|x86                         |All
         Resolution|                            |FIXED
         OS/Version|Mac OS X 10.6               |All

--- Comment #1 from Guy Harris <guy@xxxxxxxxxxxx> 2012-07-10 21:01:25 PDT ---
Two problems here:

    1) there's a crufty bit of cut-and-pasted code in wiretap/file_access.c
that should have been common code in a routine - both of them were, for the
"fake" interface information constructed when no "real" interface information
was supplied (in mergecap, it's not supplied to Wiretap), setting the time
units per second to 0, and I found one and fixed it but not the other;

    2) mergecap is not doing a very good job of handling interface information.

The fix for 1) is obvious - make it common code! - but insufficient to fix the
problem.

2) is also the cause of bug 7381.  A full fix is going to involve a significant
amount of surgery, but a quick hack fix makes this bug (which I'd already found
when getting back to working on bug 7381, and is reproducible with the
en0-arp-en1-arp.pcapng capture from that bug) go away, and probably will make
the problems in bug 7381 "go away" in the sense that, instead of producing an
unreadable capture file, mergecap will fail with "mergecap: Error writing to
outfile: Internal error".

I've checkd in the fix for 1) as rev 43655 and backported it to the 1.8 branch,
and checked in the quick hack for 2) for this bug as rev 43657 and backported
it to the 1.8 branch.  I'll leave "fixing it right" for 7381.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.