Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfaults on allocation failure (#4)
Throw std::bad_alloc instead of returning nullptr from ue2::AlignedAllocator. Allocators for STL containers are expected never to return with an invalid pointer, and instead must throw on failure. Violating this expectation can lead to invalid pointer dereferences. Co-authored-by: johanngan <johanngan.us@gmail.com> fixes github issue #317 (PR #320)
- Loading branch information