projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e367d3e
)
typefindfunctions: fix tap typefinder
author
Tim-Philipp Müller
<tim@centricular.com>
Sun, 6 May 2018 09:09:45 +0000
(11:09 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 6 May 2018 09:10:21 +0000
(11:10 +0200)
If we memcmp() 12 bytes we should make sure to get
at least 12 bytes as well, and not just 8 bytes.
Thanks oss-fuzz!
gst/typefind/gsttypefindfunctions.c
patch
|
blob
|
history
diff --git
a/gst/typefind/gsttypefindfunctions.c
b/gst/typefind/gsttypefindfunctions.c
index
84ba7eb
..
15fa3b3
100644
(file)
--- a/
gst/typefind/gsttypefindfunctions.c
+++ b/
gst/typefind/gsttypefindfunctions.c
@@
-5250,7
+5250,7
@@
static GstStaticCaps tap_caps = GST_STATIC_CAPS ("audio/x-tap-tap");
static void
tap_type_find (GstTypeFind * tf, gpointer unused)
{
- const guint8 *data = gst_type_find_peek (tf, 0,
8
);
+ const guint8 *data = gst_type_find_peek (tf, 0,
16
);
if (data) {
if (memcmp (data, "C64-TAPE-RAW", 12) == 0