From 282a4718576d6928b6c5900db89b45d83556407a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 16 Jan 2019 10:26:53 +0100 Subject: avformat/hcom: check probe buffer size --- 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; -- cgit v1.2.3