Crash when a GIOP ior.txt file is present
Summary
wireshark crashs after adding an ior.txt for GIOP.
Steps to reproduce
- open a pcap with GIOP 1.2 data
- add a ior.txt to GIOP preference (/tmp/ior.txt).
- it crashs.
What is the current bug behavior?
Crashs
What is the expected correct behavior?
Proper decoding
Sample capture file
I can share it on request.
Relevant logs and/or screenshots
#0 0x00007fffef374615 in raise () at /usr/lib/libc.so.6
#1 0x00007fffef35d862 in abort () at /usr/lib/libc.so.6
#2 0x00007ffff047a084 in () at /usr/lib/libglib-2.0.so.0
#3 0x00007ffff04d460d in g_assertion_message_expr () at /usr/lib/libglib-2.0.so.0
#4 0x00007ffff3fff5a5 in wmem_alloc (allocator=<optimized out>, size=<optimized out>) at ../epan/wmem/wmem_core.c:38
#5 0x00007ffff3fff5ca in wmem_alloc0 (allocator=<optimized out>, size=size@entry=601) at ../epan/wmem/wmem_core.c:52
#6 0x00007ffff336342b in read_IOR_strings_from_file (max_iorlen=600, name=0x7fffb4108f80 "/tmp/ior.txt") at ../epan/dissectors/packet-giop.c:1545
#7 giop_init () at ../epan/dissectors/packet-giop.c:1592
#8 0x00007ffff04cb7c8 in g_slist_foreach () at /usr/lib/libglib-2.0.so.0
#9 0x00007ffff4063dd8 in init_dissection () at ../epan/packet.c:328
#10 0x00007ffff4058670 in epan_new (prov=prov@entry=0x555555df7ad8 <cfile+248>, funcs=funcs@entry=0x555555defce0 <funcs>) at ../epan/epan.c:419
#11 0x0000555555a356d1 in ws_epan_new (cf=0x555555df79e0 <cfile>) at ../file.c:307
#12 cf_open (cf=0x555555df79e0 <cfile>, fname=fname@entry=0x555558322cc8 "/tmp/ssh.pcap", type=type@entry=0, is_tempfile=is_tempfile@entry=0, err=err@entry=0x7fffffffdb04) at ../file.c:307
#13 0x00005555557fd0ae in MainWindow::openCaptureFile(QString, QString, unsigned int, int) (this=0x555555ef0320, cf_path=..., read_filter=..., type=<optimized out>, is_tempfile=0) at /usr/include/qt/QtCore/qarraydata.h:61
#14 0x000055555564ec82 in main(int, char**) (argc=<optimized out>, qt_argv=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1089
Build information
Version 3.3.2 (v3.3.2rc0-115-g5b8a54ab)
Edited by Gerald Combs