Commit 0c666824 authored by Nikias Bassen's avatar Nikias Bassen

plist: Fix assert() to allow 16 or 8 byte integer sizes (16 bytes = unsigned integer)

Credit to Wang Junjie <zhunkibatu@gmail.com> (#90)
Credit to OSS-Fuzz
parent 8368f3d6
......@@ -767,7 +767,7 @@ PLIST_API void plist_get_uint_val(plist_t node, uint64_t * val)
uint64_t length = 0;
if (PLIST_UINT == type)
plist_get_type_and_value(node, &type, (void *) val, &length);
assert(length == sizeof(uint64_t));
assert(length == sizeof(uint64_t) || length == 16);
}
PLIST_API void plist_get_uid_val(plist_t node, uint64_t * val)
......
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