Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segfaults on allocation failure #320

Closed
wants to merge 1 commit into from

Commits on Jun 10, 2021

  1. Fix segfaults on allocation failure

    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.
    johanngan committed Jun 10, 2021
    Configuration menu
    Copy the full SHA
    79742e8 View commit details
    Browse the repository at this point in the history