X Tutup
Skip to content

[3.11] gh-105235: Prevent reading outside buffer during mmap.find() (…#106710

Merged
sweeneyde merged 1 commit intopython:3.11from
sweeneyde:backport-ab86426-3.11
Jul 15, 2023
Merged

[3.11] gh-105235: Prevent reading outside buffer during mmap.find() (…#106710
sweeneyde merged 1 commit intopython:3.11from
sweeneyde:backport-ab86426-3.11

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 <36520290+sweeneyde@users.noreply.github.com>
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

X Tutup