Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed as not planned
Closed as not planned
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-ctypes
Description
Bug report
Bug description:
Modules/_ctypes/callproc.c contained a comment (marked XXX) stating that as_parameter
allows constructing arbitrary tuples and passing them, describing this convention as "dangerous".
Analysis confirms thatctypes
does not support returning tuples from as_parameter for default conversions. Attempting to do so raises a "TypeError" (wrapped in an ArgumentError), meaning the described security risk does not exist in the current codebase.
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-ctypes
Projects
Status
Todo