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

BUG: avoid segfaults when casting from boost_python types #20507

Closed
wants to merge 1 commit into from

Commits on Dec 3, 2021

  1. BUG: avoid segfaults when casting from boost_python types

    For calls to PyArray_GetCastingImpl where `from` is a dtype of a
    boost_python class, it's not safe to assume the pointer
    (NPY_DType_Slots *)(from)->dt_slots has been initialized. This causes
    segfaults when resolving overloaded calls to boost_python methods. Thus
    we test for a null pointer before dereferencing.
    dwpaley committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    cff2e62 View commit details
    Browse the repository at this point in the history