projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af48682
)
oggstream: Ensure enough bytes for fishead header parsing
author
Edward Hervey
<edward@centricular.com>
Mon, 6 Nov 2017 13:28:52 +0000
(14:28 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Mon, 6 Nov 2017 13:29:26 +0000
(14:29 +0100)
ext/ogg/gstoggstream.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggstream.c
b/ext/ogg/gstoggstream.c
index
b973e29
..
93d97f9
100644
(file)
--- a/
ext/ogg/gstoggstream.c
+++ b/
ext/ogg/gstoggstream.c
@@
-1162,6
+1162,11
@@
setup_fishead_mapper (GstOggStream * pad, ogg_packet * packet)
gint64 prestime_n, prestime_d;
gint64 basetime_n, basetime_d;
+ if (packet->bytes < 44) {
+ GST_DEBUG ("Not enough data for fishead header");
+ return FALSE;
+ }
+
data = packet->packet;
data += 8; /* header */