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:927 #2511

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

AddressSanitizer format/mach0/mach0.c:927 #2511

ghost opened this issue May 6, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented May 6, 2015

==23289==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61300000c91c at pc 0x7f2d13801865 bp 0x7ffe5c6c4d70 sp 0x7ffe5c6c4d60
READ of size 1 at 0x61300000c91c thread T0
#0 0x7f2d13801864 in read_sleb128 /home/revskills/dev/radare2/libr/..//libr/bin/p/../format/mach0/mach0.c:927
#1 0x7f2d1380244e in get_relocs /home/revskills/dev/radare2/libr/..//libr/bin/p/../format/mach0/mach0.c:1034
#2 0x7f2d137f61be in relocs /home/revskills/dev/radare2/libr/..//libr/bin/p/bin_mach0.c:215
#3 0x7f2d13784c07 in r_bin_object_set_items /home/revskills/dev/radare2/libr/bin/bin.c:424
#4 0x7f2d137882c1 in r_bin_object_new /home/revskills/dev/radare2/libr/bin/bin.c:944
#5 0x7f2d13788f6e in r_bin_file_new_from_bytes /home/revskills/dev/radare2/libr/bin/bin.c:1055
#6 0x7f2d137868e0 in r_bin_load_io_at_offset_as_sz /home/revskills/dev/radare2/libr/bin/bin.c:644
#7 0x7f2d137869db in r_bin_load_io_at_offset_as /home/revskills/dev/radare2/libr/bin/bin.c:666
#8 0x7f2d13785e0e in r_bin_load_io /home/revskills/dev/radare2/libr/bin/bin.c:546
#9 0x7f2d14574c5a in r_core_file_do_load_for_io_plugin /home/revskills/dev/radare2/libr/core/file.c:344
#10 0x7f2d14575593 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 0x7f2d0f6ebfdf in __libc_start_main (/lib64/libc.so.6+0x1ffdf)
#13 0x4030d8 (/home/revskills/dev/radare2/binr/radare2/radare2+0x4030d8)

0x61300000c91c is located 85963682725346 bytes insideASAN:SIGSEGV
==23289==AddressSanitizer

file: http://revskills.cz/r2/6d90a2ae06159099ccf045ed3aef7f01
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), 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