Argument Clinic does not check for errors in PyBuffer_FillInfo
in generated code
#115026
Labels
extension-modules
C modules in the Modules dir
topic-argument-clinic
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
AC generates:
cpython/Modules/clinic/_codecsmodule.c.h
Line 300 in 39ec7fb
cpython/Modules/clinic/_codecsmodule.c.h
Line 1102 in 39ec7fb
cpython/Modules/clinic/_codecsmodule.c.h
Line 1178 in 39ec7fb
cpython/Modules/clinic/_codecsmodule.c.h
Line 1647 in 39ec7fb
cpython/Modules/clinic/_ssl.c.h
Line 1300 in 39ec7fb
However,
PyBuffer_FillInfo
can raise errors and return-1
on multiple occasions, so it is not safe to not check for it.I have a PR ready.
Linked PRs
PyBuffer_FillInfo
#115027The text was updated successfully, but these errors were encountered: