-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a potential security exploit in RaggedArray.loads(buffer, ldtype=…
…np.uint64). When parsing binary data with ldtype=np.uint64, if a length is sufficiently close to 2^64 that it causes the parsing buffer pointer (starting from &buffer) to overflow, then arbitrary memory owned by the current process and whose address is < &buffer can be read. Should the overflow map the pointer to a location not owned by the current process, a segfault will occur. Overflow is now caught and raised as a ValueError() (like in any other case where the parsing fails).
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 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