Skip to content
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

[3.12] gh-105235: Prevent reading outside buffer during mmap.find() (GH-105252) #106708

Merged
merged 1 commit into from Jul 15, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 13, 2023

  • Add a special case for s[-m:] == p in _PyBytes_Find

  • Add tests for _PyBytes_Find

  • Make sure that start <= end in mmap.find
    (cherry picked from commit ab86426)

Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com

…ythonGH-105252)

* Add a special case for s[-m:] == p in _PyBytes_Find

* Add tests for _PyBytes_Find

* Make sure that start <= end in mmap.find
(cherry picked from commit ab86426)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
@sweeneyde sweeneyde merged commit 4f3edd6 into python:3.12 Jul 15, 2023
23 checks passed
@miss-islington miss-islington deleted the backport-ab86426-3.12 branch July 15, 2023 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants