[FFmpeg-cvslog] avformat/hcom: check probe buffer size
Paul B Mahol
git at videolan.org
Wed Jan 16 11:29:33 EET 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jan 16 10:26:53 2019 +0100| [282a4718576d6928b6c5900db89b45d83556407a] | committer: Paul B Mahol
avformat/hcom: check probe buffer size
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=282a4718576d6928b6c5900db89b45d83556407a
---
libavformat/hcom.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/hcom.c b/libavformat/hcom.c
index 933ecce373..35515cc5b2 100644
--- a/libavformat/hcom.c
+++ b/libavformat/hcom.c
@@ -27,6 +27,8 @@
static int hcom_probe(AVProbeData *p)
{
+ if (p->buf_size < 132)
+ return 0;
if (!memcmp(p->buf+65, "FSSD", 4) &&
!memcmp(p->buf+128, "HCOM", 4))
return AVPROBE_SCORE_MAX;
More information about the ffmpeg-cvslog
mailing list