Wireshark-bugs: [Wireshark-bugs] [Bug 8752] Erroneous Sign Extension and Faulty Memory Allocatio

Date: Sun, 02 Jun 2013 18:14:22 +0000

Comment # 3 on bug 8752 from
Same bug, different function, namely pcapng_read_if_descr_block().

(gdb) set br pen on
(gdb) br pcapng.c:731
No source file named pcapng.c.
Breakpoint 1 (pcapng.c:731) pending.
(gdb) r -n -r a4d6c150b70317a0d480c21eae669db8.pcapng 
Starting program: /usr/local/bin/tshark -n -r
a4d6c150b70317a0d480c21eae669db8.pcapng
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 1, pcapng_read_if_descr_block (fh=0x179dd80, bh=0x7fffffffd3e0,
pn=0x7fffffffd4c0, wblock=0x7fffffffd430, err=0x7fffffffe100, 
    err_info=0x7fffffffd690) at pcapng.c:731
731            option_content = (char *)g_malloc(opt_cont_buf_len);
(gdb) p/u opt_cont_buf_len
$1 = 2910888159
(gdb) p/u (gsize)opt_cont_buf_len
$2 = 18446744072325472479
(gdb) next

(process:3990): GLib-ERROR **: /build/buildd/glib2.0-2.32.3/./glib/gmem.c:165:
failed to allocate 18446744072325472479 bytes

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff2f03fdb in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb)


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