From 73915cab4bb5af47c07c9aa5b1436c8f339b6af3 Mon Sep 17 00:00:00 2001 From: maminjie Date: Thu, 3 Dec 2020 01:30:52 +0000 Subject: [PATCH] fix MemorySanitizer: use-of-uninitialized-value --- src/opusfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/opusfile.c b/src/opusfile.c index 8b000a2..889cb31 100644 --- a/src/opusfile.c +++ b/src/opusfile.c @@ -479,6 +479,7 @@ static int op_fetch_headers_impl(OggOpusFile *_of,OpusHead *_head, int *_cserialnos,ogg_page *_og){ ogg_packet op; int ret; + memset(&op,0,sizeof(ogg_packet)); if(_serialnos!=NULL)*_nserialnos=0; /*Extract the serialnos of all BOS pages plus the first set of Opus headers we see in the link.*/ -- 2.23.0