Fix a possible stack corruption in AssistantAudioDecoder.
In OpenDecoderOnMediaThread(), the error callback to media::BlockingUrlProtocol is being bound to a stack variable. However, the BlockingUrlProtocol (and callback) outlives the function. So any read error that occurs later, such as in AssistantAudioDecoder::Decode(), will cause a write to the out-of-scope variable, causing stack corruption. Bug: None Change-Id: I1149e48416c1a6ca2d8ddd9d9f124cf3bb6d5f8f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2542930Reviewed-by:Jeroen Dhollander <jeroendh@chromium.org> Reviewed-by:
Xiaohui Chen <xiaohuic@chromium.org> Commit-Queue: Anand K Mistry <amistry@chromium.org> Cr-Commit-Position: refs/heads/master@{#828083}
Showing
Please register or sign in to comment