Wireshark-bugs: [Wireshark-bugs] [Bug 2750] New: Lua dissectors cannot handle 64 bit integers pr
Date: Tue, 29 Jul 2008 07:09:05 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2750

           Summary: Lua dissectors cannot handle 64 bit integers properly
           Product: Wireshark
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: balint.reczey@xxxxxxxxxxxx



Balint Reczey <balint.reczey@xxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #2075|                            |review_for_checkin?
               Flag|                            |


Created an attachment (id=2075)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=2075)
64 bit integer handling for Lua

Build Information:
Version 1.0.99 (SVN Rev 25857)

Copyright 1998-2008 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 with GTK+ 2.12.10, with GLib 2.16.4, with libpcap 0.9.8, with libz
1.2.3.3, with POSIX capabilities (Linux), with libpcre 7.6, without SMI, with
ADNS, with Lua 5.1, with GnuTLS 2.4.1, with Gcrypt 1.4.1, with MIT Kerberos,
with PortAudio V19-devel (built Oct 25 2007), without AirPcap.

Running on Linux 2.6.25-2-686, with libpcap version 0.9.8.

Built using gcc 4.3.1.

--
Since Lua uses 64 bit precision double for representing numbers, we are unable
to
write dissectors for protocols that uses 64 bit integer fields.
Lua can be compiled to use other number representations, but the most common is
64 bit double, see http://lua-users.org/wiki/FloatingPoint for details.

As a workaround, the attached patch introduces Int64 and UInt64 classes and
extends the Wireshark Lua interface to use them when building the protocol
details tree.


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