diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-19 00:46:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-19 00:46:25 (GMT) |
commit | 5f9cf23502febe0eb3bc02e45c7d2bfc79424757 (patch) | |
tree | 66e3e75c52201876c33fb90c9036420687f60dfb /Include | |
parent | 7b14f0c02ce9d919c503119db190dbca0e703393 (diff) | |
download | cpython-5f9cf23502febe0eb3bc02e45c7d2bfc79424757.zip cpython-5f9cf23502febe0eb3bc02e45c7d2bfc79424757.tar.gz cpython-5f9cf23502febe0eb3bc02e45c7d2bfc79424757.tar.bz2 |
bpo-36301: Error if decoding pybuilddir.txt fails (GH-12422)
Python initialization now fails if decoding pybuilddir.txt
configuration file fails at startup.
_PyPathConfig_Calculate() now reports memory allocation failure and
decoding error on decoding pybuilddir.txt content from
UTF-8/surrogateescape.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_fileutils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index 23ae201..bbee586 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -30,7 +30,8 @@ PyAPI_FUNC(int) _Py_EncodeUTF8Ex( PyAPI_FUNC(wchar_t*) _Py_DecodeUTF8_surrogateescape( const char *arg, - Py_ssize_t arglen); + Py_ssize_t arglen, + size_t *wlen); PyAPI_FUNC(int) _Py_GetForceASCII(void); |