-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging-24.05' into staging-next-24.05
- Loading branch information
Showing
31 changed files
with
192 additions
and
64 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
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
45 changes: 45 additions & 0 deletions
45
pkgs/development/interpreters/python/cpython/3.12/CVE-2024-12254.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,45 @@ | ||
From e991ac8f2037d78140e417cc9a9486223eb3e786 Mon Sep 17 00:00:00 2001 | ||
From: "J. Nick Koston" <[email protected]> | ||
Date: Thu, 5 Dec 2024 22:33:03 -0600 | ||
Subject: [PATCH] gh-127655: Ensure `_SelectorSocketTransport.writelines` | ||
pauses the protocol if needed (#127656) | ||
|
||
Ensure `_SelectorSocketTransport.writelines` pauses the protocol if it reaches the high water mark as needed. | ||
|
||
Co-authored-by: Kumar Aditya <[email protected]> | ||
|
||
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py | ||
index f94bf10b4225e7..f1ab9b12d69a5d 100644 | ||
--- a/Lib/asyncio/selector_events.py | ||
+++ b/Lib/asyncio/selector_events.py | ||
@@ -1175,6 +1175,7 @@ def writelines(self, list_of_data): | ||
# If the entire buffer couldn't be written, register a write handler | ||
if self._buffer: | ||
self._loop._add_writer(self._sock_fd, self._write_ready) | ||
+ self._maybe_pause_protocol() | ||
|
||
def can_write_eof(self): | ||
return True | ||
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py | ||
index aaeda33dd0c677..efca30f37414f9 100644 | ||
--- a/Lib/test/test_asyncio/test_selector_events.py | ||
+++ b/Lib/test/test_asyncio/test_selector_events.py | ||
@@ -805,6 +805,18 @@ def test_writelines_send_partial(self): | ||
self.assertTrue(self.sock.send.called) | ||
self.assertTrue(self.loop.writers) | ||
|
||
+ def test_writelines_pauses_protocol(self): | ||
+ data = memoryview(b'data') | ||
+ self.sock.send.return_value = 2 | ||
+ self.sock.send.fileno.return_value = 7 | ||
+ | ||
+ transport = self.socket_transport() | ||
+ transport._high_water = 1 | ||
+ transport.writelines([data]) | ||
+ self.assertTrue(self.protocol.pause_writing.called) | ||
+ self.assertTrue(self.sock.send.called) | ||
+ self.assertTrue(self.loop.writers) | ||
+ | ||
@unittest.skipUnless(selector_events._HAS_SENDMSG, 'no sendmsg') | ||
def test_write_sendmsg_full(self): | ||
data = memoryview(b'data') |
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
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
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
49 changes: 49 additions & 0 deletions
49
pkgs/development/libraries/gstreamer/bad/darwin-old-sdk-fix.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,49 @@ | ||
From 816f2ccad16413a4961a0001fc02d8874d4fde47 Mon Sep 17 00:00:00 2001 | ||
From: Alessandro Bono <[email protected]> | ||
Date: Wed, 10 Jul 2024 15:33:34 +0200 | ||
Subject: [PATCH] vtdec: Use kVTVideoDecoderReferenceMissingErr only when | ||
defined | ||
|
||
The enum value is declared present since macOS 10.8+[1]. Howerver, | ||
the compilation now fails with the 10.15 SDK: | ||
``` | ||
../sys/applemedia/vtdec.c:1219:12: error: use of undeclared identifier 'kVTVideoDecoderReferenceMissingErr'; did you mean 'kVTVideoDecoderMalfunctionErr'? | ||
case kVTVideoDecoderReferenceMissingErr: | ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
kVTVideoDecoderMalfunctionErr | ||
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h:40:2: note: 'kVTVideoDecoderMalfunctionErr' declared here | ||
kVTVideoDecoderMalfunctionErr = -12911, // c.f. -8960 | ||
^ | ||
1 error generated. | ||
``` | ||
|
||
Put the enum usage under #ifdef. When missing, the behavior will be | ||
the same as before commit a5c437c6430cdce603e46e09400beb4c5b9f5374. | ||
|
||
[1] https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderreferencemissingerr?language=objc | ||
--- | ||
sys/applemedia/vtdec.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c | ||
index 57fcbf9928a5..517c15365b52 100644 | ||
--- a/sys/applemedia/vtdec.c | ||
+++ b/sys/applemedia/vtdec.c | ||
@@ -1216,12 +1216,14 @@ gst_vtdec_session_output_callback (void *decompression_output_ref_con, | ||
|
||
if (status != noErr) { | ||
switch (status) { | ||
+#ifdef kVTVideoDecoderReferenceMissingErr | ||
case kVTVideoDecoderReferenceMissingErr: | ||
/* ReferenceMissingErr is not critical, when it occurs the frame | ||
* usually has the kVTDecodeInfo_FrameDropped flag set. Log only for debugging purposes. */ | ||
GST_DEBUG_OBJECT (vtdec, "ReferenceMissingErr when decoding frame %d", | ||
frame->decode_frame_number); | ||
break; | ||
+#endif | ||
#ifndef HAVE_IOS | ||
case codecBadDataErr: /* SW decoder on macOS uses a different code from the hardware one... */ | ||
#endif | ||
-- | ||
GitLab | ||
|
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.