Wireshark-bugs: [Wireshark-bugs] [Bug 4334] New: VNC Hextile encoding is incomplete

Date: Wed, 16 Dec 2009 08:41:46 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4334

           Summary: VNC Hextile encoding is incomplete
           Product: Wireshark
           Version: 1.2.4
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: mykaul@xxxxxxxxx


Build Information:
1.2.4, WinXP
SVN, Fedora 12/64bit.
--
VNC Hextile encoding is not complete. It parses up to the first tile of the
last rectangle. There are others after it, but the parser doesn't bother to
parse them, since the function vnc_hextile_encoding () returns 0 after
completing parsing of a single tile, with all its sub-rectangles.

Unfortunately, I don't know how to fix it. I assume we need some function that
would reiterate vnc_hextile_encoding() until we have everything, but I'm
failing to do it properly - how do I know if I have more in the tvb or not?
tvb_length_remaining() after the decoding won't work - as we did not bother to
fetch more than we needed to dissect the first tile of that rectangle - and I
don't know how we can know if there are more tiles - or is it an entirely new
message?

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