summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2023-07-13 02:50:45 (GMT)
committerGitHub <noreply@github.com>2023-07-13 02:50:45 (GMT)
commitab86426a3472ab68747815299d390b213793c3d1 (patch)
tree64e15afa53d2d037a1e80c0b102e2903be7c61d8 /Misc
parent2d43beec225a0495ffa0344f961b99717e5f1106 (diff)
downloadcpython-ab86426a3472ab68747815299d390b213793c3d1.zip
cpython-ab86426a3472ab68747815299d390b213793c3d1.tar.gz
cpython-ab86426a3472ab68747815299d390b213793c3d1.tar.bz2
gh-105235: Prevent reading outside buffer during mmap.find() (#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
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-06-02-19-37-29.gh-issue-105235.fgFGTi.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-06-02-19-37-29.gh-issue-105235.fgFGTi.rst b/Misc/NEWS.d/next/Core and Builtins/2023-06-02-19-37-29.gh-issue-105235.fgFGTi.rst
new file mode 100644
index 0000000..c28d010
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-06-02-19-37-29.gh-issue-105235.fgFGTi.rst
@@ -0,0 +1 @@
+Prevent out-of-bounds memory access during ``mmap.find()`` calls.