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

AddressSanitizer format/mach0/mach0.c:890 #2505

Closed
ghost opened this issue May 6, 2015 · 2 comments
Closed

AddressSanitizer format/mach0/mach0.c:890 #2505

ghost opened this issue May 6, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented May 6, 2015

==20354==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61600000f88c at pc 0x7fe78954d1b7 bp 0x7ffc42898210 sp 0x7ffc428979b8
READ of size 26 at 0x61600000f88c thread T0
#0 0x7fe78954d1b6 in strncpy (/lib64/libasan.so.1+0x2f1b6)
#1 0x7fe7884233cf in get_imports /home/revskills/dev/radare2/libr/..//libr/bin/p/../format/mach0/mach0.c:890
#2 0x7fe788417cac in imports /home/revskills/dev/radare2/libr/..//libr/bin/p/bin_mach0.c:168
#3 0x7fe7883a6a0f in r_bin_object_set_items /home/revskills/dev/radare2/libr/bin/bin.c:420
#4 0x7fe7883aa2c1 in r_bin_object_new /home/revskills/dev/radare2/libr/bin/bin.c:944
#5 0x7fe7883aaf6e in r_bin_file_new_from_bytes /home/revskills/dev/radare2/libr/bin/bin.c:1055
#6 0x7fe7883a88e0 in r_bin_load_io_at_offset_as_sz /home/revskills/dev/radare2/libr/bin/bin.c:644
#7 0x7fe7883a89db in r_bin_load_io_at_offset_as /home/revskills/dev/radare2/libr/bin/bin.c:666
#8 0x7fe7883a7e0e in r_bin_load_io /home/revskills/dev/radare2/libr/bin/bin.c:546
#9 0x7fe789196c5a in r_core_file_do_load_for_io_plugin /home/revskills/dev/radare2/libr/core/file.c:344
#10 0x7fe789197593 in r_core_bin_load /home/revskills/dev/radare2/libr/core/file.c:476
#11 0x406188 in main /home/revskills/dev/radare2/binr/radare2/radare2.c:573
#12 0x7fe78430dfdf in __libc_start_main (/lib64/libc.so.6+0x1ffdf)
#13 0x4030d8 (/home/revskills/dev/radare2/binr/radare2/radare2+0x4030d8)

0x61600000f88c is located 86169841167698 bytes insideASAN:SIGSEGV
==20354==AddressSanitizer

file: http://revskills.cz/r2/569bbfad051316cbadf77cb17301935d
radare2 0.9.9-git 7812 @ linux-little-x86-64 git.0.9.8-1404-g5b984e8
commit: 5b984e8 build: 2015-05-06

@alvarofe
Copy link
Contributor

alvarofe commented May 6, 2015

I can't reproduce this

@dequis
Copy link
Contributor

dequis commented May 6, 2015

Duplicate of #2465 (comment), already fixed by 3b04c54

@radare radare closed this as completed May 6, 2015
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

3 participants