From 2eb90d835a057b3b79f8fc62afcff28b7e8b3a38 Mon Sep 17 00:00:00 2001 From: Hema2 <49586027+Hema2-official@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:38:22 +0200 Subject: [PATCH 1/4] fix: VoiceClient crashes while receiving audio Signed-off-by: Hema2 <49586027+Hema2-official@users.noreply.github.com> --- discord/voice_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/voice_client.py b/discord/voice_client.py index 4ba571c9a7..75902ecbe2 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -613,7 +613,7 @@ def _decrypt_xsalsa20_poly1305_lite(self, header, data): @staticmethod def strip_header_ext(data): - if data[0] == 0xBE and data[1] == 0xDE and len(data) > 4: + if len(data) > 4 and data[0] == 0xBE and data[1] == 0xDE: _, length = struct.unpack_from(">HH", data) offset = 4 + length * 4 data = data[offset:] From 1ce310d3d92b56654e92a68700167a32d60aac63 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 3 Jun 2025 19:43:04 +0200 Subject: [PATCH 2/4] fix(ci): Re-run CI with empty commit From df1b0f73185f462a459a7d8d2f3839544b84900a Mon Sep 17 00:00:00 2001 From: Hema2 <49586027+Hema2-official@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:17:31 +0200 Subject: [PATCH 3/4] Update CHANGELOG.md Signed-off-by: Hema2 <49586027+Hema2-official@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1ba1cf88c..e9359852a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -111,6 +111,7 @@ These changes are available on the `master` branch, but have not yet been releas ([#2779](https://github.com/Pycord-Development/pycord/pull/2779)) - Fixed GIF-based `Sticker` returning the wrong `url`. ([#2781](https://github.com/Pycord-Development/pycord/pull/2781)) +- Fixed `VoiceClient` crashing randomly while receiving audio ([#2800](https://github.com/Pycord-Development/pycord/pull/2800)) ### Changed From ac8dc46ea9cfcaee14e5c3258ec9c9944e3f01a3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 18:17:58 +0000 Subject: [PATCH 4/4] style(pre-commit): auto fixes from pre-commit.com hooks --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9359852a4..b31e2a492a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -111,7 +111,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2779](https://github.com/Pycord-Development/pycord/pull/2779)) - Fixed GIF-based `Sticker` returning the wrong `url`. ([#2781](https://github.com/Pycord-Development/pycord/pull/2781)) -- Fixed `VoiceClient` crashing randomly while receiving audio ([#2800](https://github.com/Pycord-Development/pycord/pull/2800)) +- Fixed `VoiceClient` crashing randomly while receiving audio + ([#2800](https://github.com/Pycord-Development/pycord/pull/2800)) ### Changed