-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-35552: Fix reading past the end in PyUnicode_FromFormat() and PyBytes_FromFormat(). #11276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-35552: Fix reading past the end in PyUnicode_FromFormat() and PyBytes_FromFormat(). #11276
Conversation
…ytes_FromFormat(). Format characters "%s" and "%V" in PyUnicode_FromFormat() and "%s" in PyBytes_FromFormat() no longer read memory past the limit if precision is specified.
3e4865e
to
c64bec8
Compare
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.7. |
GH-11533 is a backport of this pull request to the 3.7 branch. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…ytes_FromFormat(). (pythonGH-11276) Format characters "%s" and "%V" in PyUnicode_FromFormat() and "%s" in PyBytes_FromFormat() no longer read memory past the limit if precision is specified. (cherry picked from commit d586ccb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…ythonGH-11276) Format character "%s" in PyString_FromFormat() no longer read memory past the limit if precision is specified. (cherry picked from commit d586ccb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-11534 is a backport of this pull request to the 2.7 branch. |
Format characters "%s" and "%V" in PyUnicode_FromFormat() and "%s" in PyBytes_FromFormat()
no longer read memory past the limit if precision is specified.
https://bugs.python.org/issue35552