-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harden
--locals
against trashed memory
When attempting to produce a repr for local variables, attempt to cope better with trashed memory: if the object's `ob_type` pointer is invalid, use "<invalid typeobject at 0x$ADDRESS>" as its class name. If we fail to read any other field needed for stringifying an object, generate "<$CLASSNAME object at 0x$ADDRESS>" for its repr. Test this with some ctypes abuse. Signed-off-by: Matt Wozniski <[email protected]>
- Loading branch information
Showing
2 changed files
with
98 additions
and
19 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