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.11] gh-105235: Prevent reading outside buffer during mmap.find() (… #106710

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

sweeneyde
Copy link
Member

@sweeneyde sweeneyde commented Jul 13, 2023

GH-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)

…nd() (pythonGH-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 <[email protected]>
@sweeneyde sweeneyde merged commit d488970 into python:3.11 Jul 15, 2023
14 checks passed
@sweeneyde sweeneyde deleted the backport-ab86426-3.11 branch July 15, 2023 02:17
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.

2 participants