X Tutup
Skip to content

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

Merged
sweeneyde merged 1 commit intopython:3.12from
miss-islington:backport-ab86426-3.12
Jul 15, 2023
Merged

[3.12] gh-105235: Prevent reading outside buffer during mmap.find() (GH-105252)#106708
sweeneyde merged 1 commit intopython:3.12from
miss-islington:backport-ab86426-3.12

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>
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.

3 participants

X Tutup