mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/hcom: check probe buffer size
This commit is contained in:
parent
51978aefe8
commit
282a471857
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
static int hcom_probe(AVProbeData *p)
|
static int hcom_probe(AVProbeData *p)
|
||||||
{
|
{
|
||||||
|
if (p->buf_size < 132)
|
||||||
|
return 0;
|
||||||
if (!memcmp(p->buf+65, "FSSD", 4) &&
|
if (!memcmp(p->buf+65, "FSSD", 4) &&
|
||||||
!memcmp(p->buf+128, "HCOM", 4))
|
!memcmp(p->buf+128, "HCOM", 4))
|
||||||
return AVPROBE_SCORE_MAX;
|
return AVPROBE_SCORE_MAX;
|
||||||
|
Loading…
Reference in New Issue
Block a user