Wireshark-bugs: [Wireshark-bugs] [Bug 5285] Wireshark crashes with "Gtk-ERROR **: Byte index 6 i

Date: Fri, 22 Oct 2010 16:20:07 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5285

Alexander Koeppe <format_c@xxxxxxxxx> changed:

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

--- Comment #3 from Alexander Koeppe <format_c@xxxxxxxxx> 2010-10-22 16:19:52 PDT ---
Created an attachment (id=5363)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=5363)
Proposed patch that fixes this issue

This patch has been made based on the capture file provided. 

The problem is, that the subdissector calls the function `tcp_dissect_pdus()'
and reports that the last PDU has more data than the acutal packet contain. 

This is normally not a problem when a PDU spans over multiple segments and the
next segment is available.

But it causes Wireshark to crash when it attempt to mark the amount of hex-data
which is actually not available in the provided capture file, as it contains
just one packet.

I asked for another packet capture where two segments are included with a
spanning PDU. But got no reply yet. Therefore I don't know if it works well in
such a case.

I'd appreciate if someone could revise this patch and/or test it.

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