Constellation / iv

ECMAScript Lexer / Parser / Interpreter / VM / method JIT written in C++
BSD 2-Clause "Simplified" License
417 stars 33 forks source link

Memory leak #101

Open dominiakm opened 6 years ago

dominiakm commented 6 years ago

Version: 64c3a9c7c517063f29d90d449180ea8f6f4d946f

Testcase: while(((Uint8Array(+((Object)))|(0))+Function())) {}

Result: The interpreter process starts allocating more and more memory, eventually leading to being killed by OOM killer. This can cause a denial of service of the entire system using this software, as it can disrupt other process running on the same machine due to memory exhaustion.

Expected resut: Garbage collector should be able to collect unnecesary objects, memory usage should be controlled and low.