Open coolboy43 opened 3 months ago
This JS snippet attempts to Allocate several Gb of memory, Chakracore sees this as dangerous and calls Abort to block it.
This behaviour is by design. I have mixed feelings about this design choice - but it was a deliberate choice by the MS chakra team a while back to block certain potential security risks by calling Abort.
commit
c3ead3f8a6e0bb8e32e043adc091c68cba5935e9
bug
big JS object causes oom
build and run
os: Ubuntu 22.04.2 LTS mem: 2G build: ./build.sh --debug --static -j=8 run: ./DebugBuild/Debug/ch poc.js Run 10 times, 10 crashes
POC
Abort output
crash stack