-
Notifications
You must be signed in to change notification settings - Fork 93
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] stack exhaustion in function compile
, mujs
#162
Comments
I don't have clang-12 can it be replicated with clang-11? |
You can try with clang-11, pls let me know if it cannot be reproduced, I'll try to give you a set of instructions to reproduce via docker images. |
My steps to reproduce via docker, if you failed in your environment, you could try the following.
|
ccxvii
added a commit
that referenced
this issue
May 17, 2022
Only bother checking during the first compilation pass that counts the size of the program.
The recent commit will limit recursion during compilation, so should solve this issue. |
ccxvii
added a commit
that referenced
this issue
May 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brief summary
Hello, I was testing my fuzzer and found an echaustion bug in mujs. A stack exhaustion in function compile will be triggered when parsing a crafted js file, when
running ./mujs $POC
, as shown in the attachmentCompiling the program
I compile mujs's latest commit db110ea in ubuntu 22 (docker image) with clang version 12.0.1.
With command
CC=clang make build=sanitize
In my test environment this bug cannot be reproduced if compiled via gcc so it's recommended to compile with clang-12
ASan output
POC
poc0.zip
Credit
Han Zheng
NCNIPC of China
Hexhive
The text was updated successfully, but these errors were encountered: