Commit c9382f08 authored by Nicolás Alvarez's avatar Nicolás Alvarez Committed by Nikias Bassen

plist_data_compare: for PLIST_DATA, compare length before accessing data

parent 502d52a3
......@@ -650,6 +650,8 @@ int plist_data_compare(const void *a, const void *b)
return FALSE;
case PLIST_DATA:
if (val_a->length != val_b->length)
return FALSE;
if (!memcmp(val_a->buff, val_b->buff, val_a->length))
return TRUE;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment