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: Make mmap handling safer in frombuffer #21446

Merged
merged 1 commit into from May 5, 2022

Commits on May 5, 2022

  1. BUG: Make mmap handling safer in frombuffer

    `frombuffer` always used the old buffer protocol, but this is not
    safe in some cases when combined with the "new" one.
    The main/only use-case that was ever found for this is that enabling
    the new buffer protocol (by going through a memoryview) protects
    users from accidentally closing memorymaps while they are still used.
    
    Closes numpygh-9537
    seberg authored and charris committed May 5, 2022
    Copy the full SHA
    1c51494 View commit details
    Browse the repository at this point in the history