summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-02-07 17:35:02 +0100
committerGravatar Nikias Bassen2017-02-07 17:35:02 +0100
commit0c6668246cde84071996dd402db1f16738113398 (patch)
tree143fe8588b38467e9488dcb051878c67c50f3a14 /src/plist.c
parent8368f3d66e963af2040a7cc750a041226364926f (diff)
downloadlibplist-0c6668246cde84071996dd402db1f16738113398.tar.gz
libplist-0c6668246cde84071996dd402db1f16738113398.tar.bz2
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
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c
index 3314378..f62e6be 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -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)