Skip to content

Commit b5ef74a

Browse files
Delete unnecessary function doc
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent 946ad3f commit b5ef74a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Modules/_testclinic.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -959,15 +959,6 @@ gh_99240_double_free
959959
960960
Proof-of-concept of GH-99240 double-free bug.
961961
962-
If parsing `a` successes, `a` will be assigned an address points to an allocated memory.
963-
After that, if parsing `b` fails, the memory which `a` points to is freed by function `_PyArg_ParseStack`,
964-
and `_PyArg_ParseStack` returns 0, then control flow goes to label "exit".
965-
At this time, `a` is not NULL, so the memory it points to is freed again,
966-
which cause a double-free problem and a runtime crash.
967-
968-
Calling this function by gh_99240_double_free('a', '\0b')
969-
to trigger this bug (crash).
970-
971962
[clinic start generated code]*/
972963

973964
static PyObject *

0 commit comments

Comments
 (0)