Wireshark-bugs: [Wireshark-bugs] [Bug 5977] New: Automatic fuzztest not possible with openSAFETY

Date Prev · Date Next · Thread Prev · Thread Next
Date: Wed, 1 Jun 2011 01:09:41 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5977

           Summary: Automatic fuzztest not possible with openSAFETY when
                    SercosIII plugin is not found
           Product: Wireshark
           Version: 1.6.0
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: rknall@xxxxxxxxx


Build Information:
TShark 1.7.0 (SVN Rev 37497 from /trunk)

Copyright 1998-2011 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GLib 2.26.1, with libpcap 1.1.1, with libz 1.2.3.4, with
POSIX capabilities (Linux), without libpcre, with SMI 0.4.8, with c-ares 1.7.3,
with Lua 5.1, with Python, with GnuTLS 2.8.6, with Gcrypt 1.4.5, with MIT
Kerberos, with GeoIP.

Running on Linux 2.6.35-28-generic, with libpcap version 1.1.1, with libz
1.2.3.4.

Built using gcc 4.4.5.

--
See
http://buildbot.wireshark.org/trunk/builders/Ubuntu-10.04-x64/builds/1452/steps/fuzz-menagerie/logs/stdio
for a description of the problem. 

The reason for this is, that the fuzztest obviously does not load the SercosIII
plugin. Therefore adding the heuristic dissector in openSAFETY fails.

The attached patch will fix this, by adding a check in
proto_register_opensafety. The check will handle the situation in one of two
ways:

- If WIRESHARK_ABORT_ON_DISSECTOR_BUG is set, a Dissector Bug  will be
reported, and execution therefore stopped
- If WIRESHARK_ABORT_ON_DISSECTOR_BUG is not set, a warning will be displayed.

It is necessary to note, that the UDP communication for the SercosIII
communication will be dissected in any case, as this does not involve the
SercosIII dissector.

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