hermes icon indicating copy to clipboard operation
hermes copied to clipboard

Compiler memory exhaustion error when compiling nested try/finally

Open lxxxxfdh opened this issue 5 years ago • 0 comments

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

  1. Run ./hermes test.js Please find test.js in the attachment test.zip.

  2. 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

lxxxxfdh avatar Sep 29 '20 16:09 lxxxxfdh