-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-106030: Miscellaneous fixes in Python/suggestions.c #106031
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
Conversation
serhiy-storchaka
commented
Jun 23, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- PyDict_GetItem() and PyObject_HasAttr() suppress arbitrary errors and should not be used.
- PyUnicode_CompareWithASCIIString() only works if the second argument is ASCII string.
- Refleak in get_suggestions_for_name_error.
- Use of borrowed pointer after possible freeing (self).
- Add some missing error checks.
- Issue: Miscellaneous fixes in Python/suggestions.c #106030
* PyDict_GetItem() and PyObject_HasAttr() suppress arbitrary errors and should not be used. * PyUnicode_CompareWithASCIIString() only works if the second argument is ASCII string. * Refleak in get_suggestions_for_name_error. * Use of borrowed pointer after possible freeing (self). * Add some missing error checks.
3d6655d
to
c82f8b8
Compare
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…H-106031) * PyDict_GetItem() and PyObject_HasAttr() suppress arbitrary errors and should not be used. * PyUnicode_CompareWithASCIIString() only works if the second argument is ASCII string. * Refleak in get_suggestions_for_name_error. * Use of borrowed pointer after possible freeing (self). * Add some missing error checks. (cherry picked from commit c8c162e) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-106036 is a backport of this pull request to the 3.12 branch. |
…ythonGH-106031) * PyDict_GetItem() and PyObject_HasAttr() suppress arbitrary errors and should not be used. * PyUnicode_CompareWithASCIIString() only works if the second argument is ASCII string. * Refleak in get_suggestions_for_name_error. * Use of borrowed pointer after possible freeing (self). * Add some missing error checks.. (cherry picked from commit c8c162e) Co-authored-by: Serhiy Storchaka <[email protected]>
…ythonGH-106031) * PyUnicode_CompareWithASCIIString() only works if the second argument is ASCII string. * Refleak in get_suggestions_for_name_error. * Add some missing error checks.. (cherry picked from commit c8c162e) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-106039 is a backport of this pull request to the 3.11 branch. |
) (#106036) Co-authored-by: Serhiy Storchaka <[email protected]>