mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
typefindhelper: Fix signed integer overflow
Make sure the whole calculation is done with 64bit unsigned values (To be ready for people want to typefind exabyte files).
This commit is contained in:
parent
d106390adc
commit
4ccdad084b
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ buf_helper_find_peek (gpointer data, gint64 off, guint size)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if ((off + size) <= helper->size)
|
||||
if (((guint64) off + size) <= helper->size)
|
||||
return helper->data + off;
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue