diff options
author | Heekyoung Seo <heekyoung.seo@lge.com> | 2017-02-10 17:32:29 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-02-19 12:53:02 +0200 |
commit | 5d0d3172addb696a81f2380e077e6753a4f52051 (patch) | |
tree | 37c0aae0898e8a1265b1a80a26d2a49a1e6e104b | |
parent | e418a1d5b78aeefed8873fbc8244f080670a7aa9 (diff) | |
download | gstreamer-plugins-base-5d0d3172addb696a81f2380e077e6753a4f52051.tar.gz |
typefindfunctions: prevent unsigned int overflow
https://bugzilla.gnome.org/show_bug.cgi?id=778432
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index b9519ac0a..eb8d2d20a 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -1436,7 +1436,7 @@ mp3_type_find_at_offset (GstTypeFind * tf, guint64 start_off, offset += length; } g_assert (found <= GST_MP3_TYPEFIND_TRY_HEADERS); - if (head_data == NULL && + if (found != 0 && head_data == NULL && gst_type_find_peek (tf, offset + start_off - 1, 1) == NULL) /* Incomplete last frame - don't count it. */ found--; |