Wireshark-bugs: [Wireshark-bugs] [Bug 11989] New: GTK: plugin_if_goto_frame causes Access Violat
Date: Sat, 09 Jan 2016 16:13:04 +0000
Bug ID 11989
Summary GTK: plugin_if_goto_frame causes Access Violation if called before capture file is loaded
Product Wireshark
Version Git
Hardware x86
OS Windows 7
Status CONFIRMED
Severity Normal
Priority Low
Component GTK+ UI
Assignee bugzilla-admin@wireshark.org
Reporter paul.offord@advance7.com

Build Information:
Version 2.1.0-Syncro (v2.1.0rc0-1325-g4c1fede from unknown)

Copyright 1998-2016 Gerald Combs <gerald@wireshark.org> and contributors.
License GPLv2+: GNU GPL version 2 or later
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
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 (64-bit) with GTK+ 2.24.23, with Cairo 1.12.16, with Pango 1.36.8,
with
WinPcap (4_1_3), with libz 1.2.8, with GLib 2.42.0, with SMI 0.4.8, with c-ares
1.9.1, with Lua 5.2, with GnuTLS 3.2.15, with Gcrypt 1.6.2, with MIT Kerberos,
with GeoIP, with PortAudio V19-devel (built Jan  8 2016), with AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with locale
English_United Kingdom.1252, with WinPcap version 4.1.3 (packet.dll version
4.1.0.2980), based on libpcap version 1.0 branch 1_0_rel0b (20091008), with
GnuTLS 3.2.15, with Gcrypt 1.6.2, with AirPcap 4.1.0 build 1622.
Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz (with SSE4.2), with 8082MB of physical
memory.


Built using Microsoft Visual C++ 12.0 build 31101
--
When running Wireshark-gtk, calling plugin_if_goto_frame before a capture file
is loaded results in an Access Violation in the function
frame_data_sequence_find at line 205 of frame_data_sequence.c where the code
is:

  if (num >= fds->count) {

because the frame_data_sequence pointer is NULL.

The call stack looks like this:

libwireshark.dll!frame_data_sequence_find(_frame_data_sequence * fds, unsigned
int num) Line 205
wireshark-gtk.exe!cf_goto_frame(_capture_file * cf, unsigned int fnumber) Line
3472
wireshark-gtk.exe!plugin_if_maintoolbar_goto_frame(const void * user_data) Line
283
libwireshark.dll!plugin_if_call_gui_cb(plugin_if_callback_t actionType,
_GHashTable * dataSet) Line 211
libwireshark.dll!plugin_if_goto_frame(unsigned int framenr) Line 237
tmsvc.dll!jump_to_frame(ext_menubar_gui_type gui_type, void * gui_data, void *
user_data) Line 34
wireshark-gtk.exe!ws_menubar_external_cb(_GtkAction * action, void * data) Line
5392


You are receiving this mail because:
  • You are watching all bug changes.