mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 813562: Zero out vorbis structures in WebMReader() to avoid crashes due to uninitialized use r=kinetik
This commit is contained in:
parent
f5d2c58055
commit
c6edd3abd1
@ -115,6 +115,13 @@ WebMReader::WebMReader(AbstractMediaDecoder* aDecoder)
|
||||
mHasAudio(false)
|
||||
{
|
||||
MOZ_COUNT_CTOR(WebMReader);
|
||||
// Zero these member vars to avoid crashes in VP8 destroy and Vorbis clear
|
||||
// functions when destructor is called before |Init|.
|
||||
memset(&mVP8, 0, sizeof(vpx_codec_ctx_t));
|
||||
memset(&mVorbisBlock, 0, sizeof(vorbis_block));
|
||||
memset(&mVorbisDsp, 0, sizeof(vorbis_dsp_state));
|
||||
memset(&mVorbisInfo, 0, sizeof(vorbis_info));
|
||||
memset(&mVorbisComment, 0, sizeof(vorbis_comment));
|
||||
}
|
||||
|
||||
WebMReader::~WebMReader()
|
||||
|
Loading…
Reference in New Issue
Block a user