-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed as not planned
Labels
3.9only security fixesonly security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
OBJ_obj2txt is used incorrectly. In man we can see this at Bugs section:
OBJ_obj2txt() is awkward and messy to use: it doesn't follow the convention of other OpenSSL functions where the buffer can be set to NULL to determine the amount of data that should be written. Instead buf must point to a valid buffer and buf_len should be set to a positive value. A buffer length of 80 should be more than enough to handle any OID encountered in practice.
CPython versions tested on:
3.11
Operating systems tested on:
No response
Metadata
Metadata
Assignees
Labels
3.9only security fixesonly security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error