{{ message }}
Raise ValueError if \x00 character exists for eval argument#4052
Merged
youknowone merged 10 commits intoAug 13, 2022
Merged
Conversation
fanninpm
reviewed
Aug 12, 2022
Contributor
Author
|
About the |
Sorry, something went wrong.
youknowone
reviewed
Aug 13, 2022
youknowone
reviewed
Aug 13, 2022
youknowone
left a comment
Member
There was a problem hiding this comment.
looks great! I left a few minor change requests
Sorry, something went wrong.
youknowone
reviewed
Aug 13, 2022
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
youknowone
approved these changes
Aug 13, 2022
youknowone
left a comment
Member
There was a problem hiding this comment.
Thank you!
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.
It isn't a full perfect solution for
evalimplementation but it fixes:evalbecame to receivebytesalso.evalraisesValueErrorwhen there isnull(\x00) character before compiling.You can see also:
_Py_SourceAsStringp.s. The message says like it should receive
stringorbytesorcodebut it also receivesbytearraywell. 🤔