Skip to content

Commit 7767139

Browse files
Delete unnecessary function doc
Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 946ad3f commit 7767139

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

Modules/_testclinic.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -959,20 +959,11 @@ 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 *
974965
gh_99240_double_free_impl(PyObject *module, char *a, char *b)
975-
/*[clinic end generated code: output=586dc714992fe2ed input=419d3a3790de435e]*/
966+
/*[clinic end generated code: output=586dc714992fe2ed input=23db44aa91870fc7]*/
976967
{
977968
Py_RETURN_NONE;
978969
}

Modules/clinic/_testclinic.c.h

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)