File 0033-plist-Fix-assert-to-allow-16-or-8-byte-integer-sizes.patch of Package libplist.4090
From 0c6668246cde84071996dd402db1f16738113398 Mon Sep 17 00:00:00 2001
From: Nikias Bassen <nikias@gmx.li>
Date: Tue, 7 Feb 2017 17:35:02 +0100
Subject: [PATCH 40/41] 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
---
src/plist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.6.6