hermes
hermes copied to clipboard
Compiler memory exhaustion error when compiling nested try/finally
Bug Description
When running hermes $JSFILE with the crafted JSFILE, an unlimited memory allocation bug is triggered.
Hermes version: git dde6dce React Native version (if any): Android version (if any): Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64): x86_64
Steps To Reproduce
-
Run ./hermes test.js Please find test.js in the attachment test.zip.
-
If we limit the memory to 500M, it throws the bad_alloc exception. If the memory is not limited, it keeps eating memories until the machine does not respond. test.zip