{{ message }}
bpo-31337 Close a minor NULL dereference opportunity#3282
Closed
warsaw wants to merge 5 commits into
Closed
Conversation
Found by Kirit Sankar Gupta.
Member
|
@serhiy-storchaka Thanks! Where would I see an example of Victor's runtime
checks? I didn't notice anything in local tests.
See for example lines 3566-3573 in ceval.c. And there should be similar code
in several other places.
What exception do you think we should raise? `MemoryError`, `RuntimeError`
or something else?
Note that this is a dead code! I think we shouldn't add it at all.
|
Sorry, something went wrong.
Member
Author
|
@serhiy-storchaka Oh, I see what your reference to "Victor's runtime checks" are. Yes, I knew about the I don't agree that this is obviously dead code. You have to reason about the control flow, and assume that |
Sorry, something went wrong.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
https://bugs.python.org/issue31337