-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
recipe/patches/0000-Fix-off-by-one-error-in-_winapi_WaitForMultipleObjec.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 48755cdaaeb7e4ab82d1b96cc80c0ab67a0c7b0d Mon Sep 17 00:00:00 2001 | ||
From: Ray Donnelly <[email protected]> | ||
Date: Sun, 12 Apr 2020 18:22:21 +0200 | ||
Subject: [PATCH 00/26] Fix off-by-one-error in | ||
_winapi_WaitForMultipleObjects_impl | ||
|
||
--- | ||
Modules/_winapi.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/Modules/_winapi.c b/Modules/_winapi.c | ||
index 647075cdb1..aec836ad82 100644 | ||
--- a/Modules/_winapi.c | ||
+++ b/Modules/_winapi.c | ||
@@ -1706,7 +1706,7 @@ _winapi_WaitForMultipleObjects_impl(PyObject *module, PyObject *handle_seq, | ||
nhandles = PySequence_Length(handle_seq); | ||
if (nhandles == -1) | ||
return NULL; | ||
- if (nhandles < 0 || nhandles >= MAXIMUM_WAIT_OBJECTS - 1) { | ||
+ if (nhandles < 0 || nhandles > MAXIMUM_WAIT_OBJECTS - 1) { | ||
PyErr_Format(PyExc_ValueError, | ||
"need at most %zd handles, got a sequence of length %zd", | ||
MAXIMUM_WAIT_OBJECTS - 1, nhandles); | ||
-- | ||
2.24.3 (Apple Git-128) | ||
|