diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-09-27 22:23:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 22:23:42 (GMT) |
commit | aab01e3524d966dca6e72c718a2c71403a14e47c (patch) | |
tree | 69e30e5354e49bc104177ab61ee8b39ccd24bf22 /Include/cpython | |
parent | dd53b79de0ea98af6a11481217a961daef4e9774 (diff) | |
download | cpython-aab01e3524d966dca6e72c718a2c71403a14e47c.zip cpython-aab01e3524d966dca6e72c718a2c71403a14e47c.tar.gz cpython-aab01e3524d966dca6e72c718a2c71403a14e47c.tar.bz2 |
gh-96670: Raise SyntaxError when parsing NULL bytes (#97594)
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/fileobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/fileobject.h b/Include/cpython/fileobject.h index cff2243..b70ec31 100644 --- a/Include/cpython/fileobject.h +++ b/Include/cpython/fileobject.h @@ -3,6 +3,7 @@ #endif PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *); +PyAPI_FUNC(char *) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*); /* The std printer acts as a preliminary sys.stderr until the new io infrastructure is in place. */ |