Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 875d8a670798f8ed578475c026d24a9982433e00
https://github.com/WebKit/WebKit/commit/875d8a670798f8ed578475c026d24a9982433e00
Author: Frédéric Wang <[email protected]>
Date: 2025-05-29 (Thu, 29 May 2025)
Changed paths:
A LayoutTests/fast/webcodecs/audio-data-copy-to-crash-expected.txt
A LayoutTests/fast/webcodecs/audio-data-copy-to-crash.html
M Source/WebCore/Modules/webcodecs/WebCodecsAudioDataAlgorithms.cpp
Log Message:
-----------
Fix crashes and assertions with AudioData.copyTo
https://bugs.webkit.org/show_bug.cgi?id=288440
rdar://145467725
Reviewed by Youenn Fablet.
When AudioData.copyTo() is executed, audioElementSpan() performs
spanReinterpretCast on the destination buffer but this crashes if the buffer
byte size is not a multiple of the byte size of the desired type.
* LayoutTests/fast/webcodecs/audio-data-copy-to-crash-expected.txt: Added.
* LayoutTests/fast/webcodecs/audio-data-copy-to-crash.html: Added.
* Source/WebCore/Modules/webcodecs/WebCodecsAudioDataAlgorithms.cpp:
(WebCore::audioElementSpan): Ignore the extra bytes to make the cast successful.
Originally-landed-as: [email protected] (9cd83b245d8d).
rdar://151713264
Canonical link: https://commits.webkit.org/295546@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes