Commit 3fe28c6
REGRESSION (Safari 26): AudioData.copyTo() crashes the tab with valid conversion
https://bugs.webkit.org/show_bug.cgi?id=302521
rdar://164730320
Reviewed by Jean-Yves Avenard.
The RELEASE_ASSERT in PlatformRawAudioDataCocoa::copyTo() required
(increment - 2) more elements than necessary. This caused crashes
when copying planeIndex 2 from 3-channel AudioData.
Test: http/wpt/webcodecs/audioData-copyTo-last-channel-does-not-crash.html
* LayoutTests/http/wpt/webcodecs/audioData-copyTo-last-channel-does-not-crash-expected.txt: Added.
* LayoutTests/http/wpt/webcodecs/audioData-copyTo-last-channel-does-not-crash.html: Added.
* Source/WebCore/platform/audio/cocoa/PlatformRawAudioDataCocoa.cpp:
(WebCore::PlatformRawAudioData::copyTo):
Canonical link: https://commits.webkit.org/304728@main1 parent 5ab99ca commit 3fe28c6
File tree
3 files changed
+30
-1
lines changed- LayoutTests/http/wpt/webcodecs
- Source/WebCore/platform/audio/cocoa
3 files changed
+30
-1
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments