mirror of https://github.com/boa-dev/boa.git
Browse Source
Fixes #1847 by wrapping the `std::alloc::alloc()` call in `try_alloc()`, which checks that the returned pointer is non-null and handles allocation errors that way. It will now abort the process instead of executing UB in the error pathpull/1746/head
Timo
3 years ago
1 changed files with 11 additions and 3 deletions
Loading…
Reference in new issue