-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Closed
Copy link
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-argument-clinictype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
AC generates:
cpython/Modules/clinic/_codecsmodule.c.h
Line 300 in 39ec7fb
PyBuffer_FillInfo(&data, args[0], (void *)ptr, len, 1, 0); cpython/Modules/clinic/_codecsmodule.c.h
Line 1102 in 39ec7fb
PyBuffer_FillInfo(&data, args[0], (void *)ptr, len, 1, 0); cpython/Modules/clinic/_codecsmodule.c.h
Line 1178 in 39ec7fb
PyBuffer_FillInfo(&data, args[0], (void *)ptr, len, 1, 0); cpython/Modules/clinic/_codecsmodule.c.h
Line 1647 in 39ec7fb
PyBuffer_FillInfo(&data, args[0], (void *)ptr, len, 1, 0); cpython/Modules/clinic/_ssl.c.h
Line 1300 in 39ec7fb
PyBuffer_FillInfo(&view, args[0], (void *)ptr, len, 1, 0);
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
erlend-aasland
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-argument-clinictype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error