mirror of
https://github.com/python/cpython.git
synced 2026-05-09 22:20:38 -04:00
1445d77282
In non-debug more the check for the "errors" argument is skipped,
and then PyUnicode_AsUTF8() can fail, but its result was not checked.
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 9302f05f9a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>