Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doublefree with malformed pcapng inputfile #5

Closed
aapo opened this issue Jun 25, 2018 · 2 comments
Closed

doublefree with malformed pcapng inputfile #5

aapo opened this issue Jun 25, 2018 · 2 comments

Comments

@aapo
Copy link

aapo commented Jun 25, 2018

pcapng for ping -c 1 localhost (ipv6)
With one (intentional) bitflip, attached.

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff736b801 in __GI_abort () at abort.c:79
#2  0x00007ffff73b4897 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff74e1b9a "%s\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff73bb90a in malloc_printerr (str=str@entry=0x7ffff74e3870 "double free or corruption (out)") at malloc.c:5350
#4  0x00007ffff73c2e75 in _int_free (have_lock=0, p=0x555555763cb0, av=0x7ffff7716c40 <main_arena>) at malloc.c:4278
#5  __GI___libc_free (mem=0x555555763cc0) at malloc.c:3124
#6  0x000055555555661c in handle_packets (bpf_filter=0x0, pkthdr=0x7fffffffdbe0, bytes=0x55555575c74c "") at ipdecap.c:454
#7  0x00007ffff773ad19 in ?? () from /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
#8  0x0000555555556a35 in main (argc=5, argv=0x7fffffffde68) at ipdecap.c:540

ipdecap_issue5.zip

@lpefferkorn
Copy link
Owner

Thanks for the report, I'll have a look

@lpefferkorn
Copy link
Owner

Fixed in 6260b71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants