-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Missing validation for allowed constant values in ast.literal_eval() #141778
Copy link
Copy link
Open
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Todo
Bug report
Bug description:
Maybe it's a feature, but I see something wrong here:
Note, that for unary/binary ops values are checked, e.g.:
(Tested in the main branch too.)
CPython versions tested on:
CPython main branch, 3.14
Operating systems tested on:
No response
Linked PRs
ast.literal_eval()#141933