From aab01e3524d966dca6e72c718a2c71403a14e47c Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Tue, 27 Sep 2022 23:23:42 +0100 Subject: gh-96670: Raise SyntaxError when parsing NULL bytes (#97594) --- Include/cpython/fileobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/cpython') diff --git a/Include/cpython/fileobject.h b/Include/cpython/fileobject.h index cff2243d62..b70ec31898 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. */ -- cgit v1.2.1