[FFmpeg-cvslog] avformat/mov: ensure required number of bytes is read
Kacper Michajłow
git at videolan.org
Fri Aug 9 00:35:20 EEST 2024
ffmpeg | branch: master | Kacper Michajłow <kasper93 at gmail.com> | Wed Aug 7 16:09:20 2024 +0200| [b534e402d8c45f22feafe70d6b7d1c5a48c4d411] | committer: Michael Niedermayer
avformat/mov: ensure required number of bytes is read
Fixes: use-of-uninitialized-value
Found by OSS-Fuzz.
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b534e402d8c45f22feafe70d6b7d1c5a48c4d411
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 1052691936..f2d8aee766 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -7096,7 +7096,7 @@ static int mov_read_free(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (atom.size < 8)
return 0;
- ret = avio_read(pb, content, FFMIN(sizeof(content), atom.size));
+ ret = ffio_read_size(pb, content, FFMIN(sizeof(content), atom.size));
if (ret < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list