Wireshark-bugs: [Wireshark-bugs] [Bug 4948] Lua Script code does not function as expected

Date: Tue, 21 Jun 2011 19:31:01 -0700 (PDT)

Tony Trinh <tony19@xxxxxxxxx> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |tony19@xxxxxxxxx
         Resolution|                            |FIXED

--- Comment #6 from Tony Trinh <tony19@xxxxxxxxx> 2011-06-21 22:30:59 EDT ---
I confirmed this works correctly in 1.6.0 and 1.7.0 in Ubuntu 11.04.

The following Lua tests for the originally reported error:

function proto_foo.dissector(buf, pinfo, tree)

    -- make sure buffer is right size and does not "create nil"
    if buf:len() < 8 then return end

    -- print the 64-bit integer
    local u64 = buf(0,8):uint64()
    print("u64", u64)

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