diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-08-08 16:21:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 16:21:07 (GMT) |
commit | 62f06508e76e023a81861caee6a45e1d639bf530 (patch) | |
tree | 7314afc6ee3da212616d55d24cfd9e2a9853dcac /Misc | |
parent | 63140b445e4a303df430b3d60c1cd4ef34f27c03 (diff) | |
download | cpython-62f06508e76e023a81861caee6a45e1d639bf530.zip cpython-62f06508e76e023a81861caee6a45e1d639bf530.tar.gz cpython-62f06508e76e023a81861caee6a45e1d639bf530.tar.bz2 |
gh-95781: More strict format string checking in PyUnicode_FromFormatV() (GH-95784)
An unrecognized format character in PyUnicode_FromFormat() and
PyUnicode_FromFormatV() now sets a SystemError.
In previous versions it caused all the rest of the format string to be
copied as-is to the result string, and any extra arguments discarded.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2022-08-08-14-36-31.gh-issue-95781.W_G8YW.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-08-08-14-36-31.gh-issue-95781.W_G8YW.rst b/Misc/NEWS.d/next/C API/2022-08-08-14-36-31.gh-issue-95781.W_G8YW.rst new file mode 100644 index 0000000..eb2fd7e --- /dev/null +++ b/Misc/NEWS.d/next/C API/2022-08-08-14-36-31.gh-issue-95781.W_G8YW.rst @@ -0,0 +1,4 @@ +An unrecognized format character in :c:func:`PyUnicode_FromFormat` and +:c:func:`PyUnicode_FromFormatV` now sets a :exc:`SystemError`. +In previous versions it caused all the rest of the format string to be +copied as-is to the result string, and any extra arguments discarded. |