Skip to content

a memory leak was discovered in bin2fex #186

Open
@Asteriska001

Description

@Asteriska001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions