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 memory leak was discovered in bin2fex #186

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

a memory leak was discovered in bin2fex #186

Asteriska001 opened this issue Nov 28, 2022 · 0 comments

Comments

@Asteriska001
Copy link

Description

A memory leak bug was discovered in function script_section_new /AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/script.c:63:17

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

=================================================================
==13486==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4982ad in malloc (/AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/sunxi-fexc+0x4982ad)
    #1 0x4ce9cc in script_section_new /AFLplusplus/my_test/sunxi-tools-master/valid/sunxi-tools-master/script.c:63:17
    #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 0x7f40bd4a6082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16

SUMMARY: AddressSanitizer: 64 byte(s) leaked in 1 allocation(s).

POC

Any issue plz contact with me:
id_000002,sig_11,src_000000,time_1066,op_havoc,rep_4.zip

asteriska001@gmail.com
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