GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — C API: Detect buffer overflow in PyBytesWriter · Issue #156939 · python/cpython Closed Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-featureA feature request or enhancementA feature request or enhancement Description
Example of bug: PyBytesWriter *writer = PyBytesWriter_Create(0); if (writer == NULL) { goto error; } if (PyBytesWriter_Grow(writer, 3) < 0) { goto error; } char *data = PyBytesWriter_GetData(writer); strcpy(data, "abc"); return PyBytesWriter_Finish(writer); This code allocates 3 bytes but writes 4 bytes because Linked PRs
Activity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |