Wireshark-bugs: [Wireshark-bugs] [Bug 4461] Lua ByteArray:append() causes wireshark crash

Date: Wed, 28 Apr 2010 07:25:35 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4461

--- Comment #5 from V.Sannikov <vsannikov@xxxxxxxxx> 2010-04-28 07:25:33 PDT ---
(In reply to comment #4)
> @V.Sannikov: how about current stable release 1.2.7 ?

Same bad behaivor with both 1.2.7 and 1.3.4.

I use that minimalistic dissector:

    do
        local test_proto = Proto("test", "TEST")

        function test_proto.dissector(buf, pinfo, root)
            local ba = ByteArray.new("02")
            ba:append(ByteArray.new("03"))
        end

        local t = DissectorTable.get("ip.proto")
        if t then
            -- replace original UDP dissector
            t:add(17, test_proto)
        end

    end

when opening capture file with some UDP packets and Wireshark crashes.

If I comment out line with 'ba:append()' call all works fine.

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