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

[Bug report] Some SEGV bugs in functions of liming #248

Open
Yhcrown opened this issue Aug 19, 2022 · 0 comments
Open

[Bug report] Some SEGV bugs in functions of liming #248

Yhcrown opened this issue Aug 19, 2022 · 0 comments

Comments

@Yhcrown
Copy link

Yhcrown commented Aug 19, 2022

Hi, developers of libming:

Recently, I tested some binaries instrumented with ASAN in liming. Unfortunately, some function (all in decompileAction and caused by getString or getName) incurred crashes about address error(heap-buffer-overflow and Segment Fault):

  • Segment fault in 14 functions: decompileArithmeticOp, decompileIMPLEMENTS, newVar_N(decompileNEWOBJECT), decompileNEWMETHOD, decompileNEWOBJECT, decompileGETMEMBER, decompileGETVARIABLE, decompilePUSHPARAM(decompileGETURL2), decompileIMPLEMENTS, newVar_N2(decompileINITOBJECT), decompileCAST, decompileRETURN, decompilePUSHPARAM, decompileSETTARGET.
  • Heap buffer overflow in 2 functions: decompileGETMEMBER, newVar_N.

There are all the error messages and crash inputs in my GitHub repository:
https://github.com/Yhcrown/fuzzing-crashes/tree/main/validated/libming

Verification steps:

git clone https://github.com/libming/libming.git
cd libming
export CC=clang CXX=clang++
./autogen.sh
CFLAGS+="-fsanitize=address" LDFLAGS+="-fsanitize=address" ./configure --disable-shared
make -j
cd util
./binary ./crash-input

Environment:
Ubuntu 22.04 LTS
Linux lab-pro 4.15.0-147-generic
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Ubuntu clang version 14.0.6

Thanks & Best regards !

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