Bug ID |
8973
|
Summary |
Wireshark crashes when using filter macro containing $0
|
Classification |
Unclassified
|
Product |
Wireshark
|
Version |
1.10.0
|
Hardware |
x86
|
OS |
Windows 7
|
Status |
UNCONFIRMED
|
Severity |
Minor
|
Priority |
Low
|
Component |
Dissection engine (libwireshark)
|
Assignee |
bugzilla-admin@wireshark.org
|
Reporter |
intkecsk@yandex.ru
|
Build Information:
Version 1.10.0 (SVN Rev 49790 from /trunk-1.10)
Copyright 1998-2013 Gerald Combs <gerald@wireshark.org> 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 (32-bit) with GTK+ 2.24.14, with Cairo 1.10.2, with Pango 1.30.1, with
GLib 2.34.1, with WinPcap (4_1_3), with libz 1.2.5, without POSIX capabilities,
without libnl, with SMI 0.4.8, with c-ares 1.9.1, with Lua 5.1, without Python,
with GnuTLS 2.12.18, with Gcrypt 1.4.6, with MIT Kerberos, with GeoIP, with
PortAudio V19-devel (built Jun 5 2013), with AirPcap.
Running on 32-bit Windows 7, build 7600, with WinPcap version 4.1.3 (packet.dll
version 4.1.0.2980), based on libpcap version 1.0 branch 1_0_rel0b (20091008),
GnuTLS 2.12.18, Gcrypt 1.4.6, without AirPcap.
AMD Phenom(tm) II X3 710 Processor, with 3327MB of physical memory.
Built using Microsoft Visual C++ 10.0 build 40219
--
Sometimes, using display macro containing $0 causes Wireshark to crash
Steps to reproduce:
1. Create new display filter macro with value "$0 $1"
2. Use it in the filter input with one argument, e.g. "${fmname:0}", where
"fmname" is the name of created filter macro
3. As soon as macro invocation is completed, Wireshark crashes.
Cause:
In function macro_update in dfilter-macro.c, "arg_pos" isn't checked for 0
after scanning the argument reference. So, -1 is appended to the "args_pos"
array
When using this macro, in function dfilter_macro_resolve, the "args" array is
indexed with -1, causing the crash.
You are receiving this mail because:
- You are watching all bug changes.