Add buffer length checks to every typefinding function
Original commit message from CVS: Add buffer length checks to every typefinding function
This commit is contained in:
parent
f1dc779db1
commit
d819df1b4c
@ -201,7 +201,7 @@ realmedia_type_find (GstBuffer *buf, gpointer private)
|
|||||||
|
|
||||||
g_return_val_if_fail (data != NULL, NULL);
|
g_return_val_if_fail (data != NULL, NULL);
|
||||||
|
|
||||||
if(GST_BUFFER_SIZE(buf) < 8){
|
if(GST_BUFFER_SIZE(buf) < 4){
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (strncmp (data, ".RMF", 4)==0) {
|
if (strncmp (data, ".RMF", 4)==0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user