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

A SEGV fault was discovered in bin2fex #187

Open
Asteriska001 opened this issue Nov 28, 2022 · 0 comments
Open

A SEGV fault was discovered in bin2fex #187

Asteriska001 opened this issue Nov 28, 2022 · 0 comments

Comments

@Asteriska001
Copy link

Description

A SEGV fault was discovered in function decompile_section /script_bin.c:277:21

Version

Version v1.4 (Lastest commit)

Environment

Ubuntu 18.04, 64bit

Reproduce

Command

git clone the Lastest Version firstly.
make
./bin2fex  ./poc

POC file at the bottom of this report.

ASAN Report

AddressSanitizer:DEADLYSIGNAL
=================================================================
==674==ERROR: AddressSanitizer: SEGV on unknown address 0x7f947bd0a1f8 (pc 0x0000004d4d3c bp 0x7ffd1cfb23b0 sp 0x7ffd1cfb21c0 T0)
==674==The signal is caused by a READ memory access.
    #0 0x4d4d3c in decompile_section /AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/script_bin.c:277:21
    #1 0x4d4d3c in script_decompile_bin /AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/script_bin.c:351:8
    #2 0x4ca07b in script_parse /AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/fexc.c:142:9
    #3 0x4ca07b in main /AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/fexc.c:331:13
    #4 0x7f948a9de082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
    #5 0x41d3ed in _start (/AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/sunxi-fexc+0x41d3ed)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/script_bin.c:277:21 in decompile_section

POC

id_000001,sig_11,src_000000,time_934,op_havoc,rep_2.zip

Any issue plz contact with me:
[email protected]
OR:
twitter: @Asteriska8

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

1 participant