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:
d106390
)
typefindhelper: Fix signed integer overflow
author
Edward Hervey
<edward@centricular.com>
Sat, 4 Nov 2017 09:34:10 +0000
(10:34 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Sat, 4 Nov 2017 09:34:10 +0000
(10:34 +0100)
Make sure the whole calculation is done with 64bit unsigned values
(To be ready for people want to typefind exabyte files).
libs/gst/base/gsttypefindhelper.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gsttypefindhelper.c
b/libs/gst/base/gsttypefindhelper.c
index
61a475e
..
67efeac
100644
(file)
--- a/
libs/gst/base/gsttypefindhelper.c
+++ b/
libs/gst/base/gsttypefindhelper.c
@@
-446,7
+446,7
@@
buf_helper_find_peek (gpointer data, gint64 off, guint size)
return NULL;
}
return NULL;
}
- if ((off + size) <= helper->size)
+ if ((
(guint64)
off + size) <= helper->size)
return helper->data + off;
return NULL;
return helper->data + off;
return NULL;