projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51978ae
)
avformat/hcom: check probe buffer size
author
Paul B Mahol
<onemda@gmail.com>
Wed, 16 Jan 2019 09:26:53 +0000
(10:26 +0100)
committer
Paul B Mahol
<onemda@gmail.com>
Wed, 16 Jan 2019 09:26:53 +0000
(10:26 +0100)
libavformat/hcom.c
patch
|
blob
|
history
diff --git
a/libavformat/hcom.c
b/libavformat/hcom.c
index
933ecce
..
35515cc
100644
(file)
--- 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;