diff mbox series

[FFmpeg-devel] avformat/mov: Fix MSAN issue with stsd_id

Message ID 20231117171335.3338-1-michael@niedermayer.cc
State Accepted
Commit ff451df9479810d75851f92babd0b4290da03dd6
Headers show
Series [FFmpeg-devel] avformat/mov: Fix MSAN issue with stsd_id | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Michael Niedermayer Nov. 17, 2023, 5:13 p.m. UTC
From: Thomas Guilbert <tguilbert@chromium.org>

Fixes: use of uninitialized value
Fixes: bbb-320x240-2video-2audio.mp4

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavformat/mov.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Dec. 29, 2023, 6:24 p.m. UTC | #1
On Fri, Nov 17, 2023 at 06:13:35PM +0100, Michael Niedermayer wrote:
> From: Thomas Guilbert <tguilbert@chromium.org>
> 
> Fixes: use of uninitialized value
> Fixes: bbb-320x240-2video-2audio.mp4
> 
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavformat/mov.c | 1 +
>  1 file changed, 1 insertion(+)

will apply

[...]
diff mbox series

Patch

diff --git a/libavformat/mov.c b/libavformat/mov.c
index e8efccf6ebf..2977d4e55eb 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1466,6 +1466,7 @@  static int update_frag_index(MOVContext *c, int64_t offset)
         frag_stream_info[i].index_base = -1;
         frag_stream_info[i].index_entry = -1;
         frag_stream_info[i].encryption_index = NULL;
+        frag_stream_info[i].stsd_id = -1;
     }
 
     if (index < c->frag_index.nb_items)