ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 4056] NewPacketList:; Hex pane display issue after startup

Date: Mon, 25 Jan 2010 01:59:19 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4056

didier gautheron <dgautheron@xxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dgautheron@xxxxxxxx

--- Comment #3 from didier gautheron <dgautheron@xxxxxxxx> 2010-01-25 01:59:04 PST ---
(In reply to comment #2)
> A much simpler scenario:
> 
> 1. Load a capture file having some number of frames.
> 
> 2. As the *first* action: Expand a tree showing in the details pane.
> 
> 3. Note that the display in the hex pane changes....
> 
> I see this on both Windows and Linux.

In my understanding the problem is with cfile.pd and wtap_seek_read() in
packet_list_store.c:packet_list_dissect_and_cache_record(), it clobbers the
data source for the first tab bytes view.

Either 1) we use a different buffer or 2) we don't update the byte view if it's
already displayed.

1) is easier to do.
2) is better but it needs a change in the logic for highlighting selected
bytes. 

Note:
It's not the only case triggering this bug.

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