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

Invalid read in r_bin_demangle_swift() #13157

fumfel opened this issue Feb 19, 2019 · 0 comments

Invalid read in r_bin_demangle_swift() #13157

fumfel opened this issue Feb 19, 2019 · 0 comments


Copy link

@fumfel fumfel commented Feb 19, 2019

Work environment

Questions Answers
OS/arch/bits (mandatory) Ubuntu 18.04 x64
File format of the file you reverse (mandatory) Mach-O
Architecture/bits of the file (mandatory) x86/64
r2 -v full output, not truncated (mandatory) radare2 3.3.0 20942 @ linux-x86-64 git.3.3.0 commit: 5a9127d build: 2019-02-19__15:42:36

Expected behavior

Show dissasembly of file.

Actual behavior

SIGSEGV in ASAN build.

Steps to reproduce the behavior

Additional Logs, screenshots, source-code, configuration dump, ...

==10911==ERROR: AddressSanitizer: SEGV on unknown address 0x603fd2301dd6 (pc 0x7fc7555f627e bp 0x7ffce187e7c0 sp 0x7ffce187e240 T0)
==10911==The signal is caused by a READ memory access.
    #0 0x7fc7555f627d in r_bin_demangle_swift radare2/libr/bin/mangling/swift-sd.c:488:31
    #1 0x7fc755268e08 in r_bin_demangle radare2/libr/bin/demangle.c:135:30
    #2 0x7fc756877a46 in bin_imports radare2/libr/core/cbin.c:1705:18
    #3 0x7fc756877a46 in r_core_bin_info radare2/libr/core/cbin.c:3671
    #4 0x7fc75687101c in r_core_bin_set_env radare2/libr/core/cbin.c:133:3
    #5 0x7fc7567d8e58 in r_core_file_do_load_for_io_plugin radare2/libr/core/cfile.c:385:2
    #6 0x7fc7567d8e58 in r_core_bin_load radare2/libr/core/cfile.c:538
    #7 0x55d347469ab6 in main radare2/binr/radare2/radare2.c:1165:15
    #8 0x7fc74f18eb96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
    #9 0x55d3473728b9 in _start (/usr/local/bin/radare2+0x258b9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV radare2/libr/bin/mangling/swift-sd.c:488:31 in r_bin_demangle_swift

@XVilka XVilka added this to the 3.4.0 - aprils milestone Feb 21, 2019
@XVilka XVilka added the bug label Feb 21, 2019
@XVilka XVilka added this to To do in RBin via automation Feb 27, 2019
radare added a commit that referenced this issue Feb 28, 2019
@radare radare closed this in 00178e2 Mar 3, 2019
RBin automation moved this from To do to Done Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.