Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 gh-9537
- Loading branch information
Showing
3 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters