mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
typefind: Avoid overflow calculation (image/quicktime)
The qt typefinder uses guint64 values for offset and size calculation but the typefinder system only supports gint64 values. Make sure we don't end up using potentially overflowing values.
This commit is contained in:
parent
1df9b05f18
commit
aa10e82257
1 changed files with 2 additions and 0 deletions
|
@ -3460,6 +3460,8 @@ qtif_type_find (GstTypeFind * tf, gpointer unused)
|
|||
}
|
||||
|
||||
offset += size;
|
||||
if (offset + 8 >= G_MAXINT64)
|
||||
break;
|
||||
if (++rounds > QTIF_MAXROUNDS)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue