Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c1ad8e16b414fdeb50f5220cd7cd574f179b6096
https://github.com/WebKit/WebKit/commit/c1ad8e16b414fdeb50f5220cd7cd574f179b6096
Author: Adrian Perez de Castro <[email protected]>
Date: 2025-02-12 (Wed, 12 Feb 2025)
Changed paths:
M Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
Log Message:
-----------
[WebAudio] Ensure AudioBufferSourceNode doesn't read past the input source
when not looping
https://bugs.webkit.org/show_bug.cgi?id=287477
Reviewed by Darin Adler and Chris Dumez.
Add an early exit from AudioBufferSourceNode::renderFromBuffer()
instead of reading past the source buffer when m_isLooping is false.
The read cursor in AudioBufferSourceNode may have been set e.g. due to a
previous ::renderFromBuffer() call to a position past the end of the
source buffer. If the node has m_isLooping set the existing checks will
reset the cursor to the beginning of the loop; but if not looping then
we may attempt to read past the end of the source buffer.
* Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp:
(WebCore::AudioBufferSourceNode::renderFromBuffer):
Canonical link: https://commits.webkit.org/290282@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