From 06d92b11523115b5813ee3235f6ea052b98e6d2d Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 22 Jan 2026 13:15:46 +0100 Subject: plist: Fix plist_is_binary() not checking for NULL input Fixes issue #300 Credit to @jasonmli8 --- src/plist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plist.c b/src/plist.c index 1eaa4e6..781f795 100644 --- a/src/plist.c +++ b/src/plist.c @@ -210,7 +210,7 @@ void* memmem(const void* haystack, size_t haystack_len, const void* needle, size int plist_is_binary(const char *plist_data, uint32_t length) { - if (length < 8) { + if (plist_data == NULL || length < 8) { return 0; } -- cgit v1.1-32-gdbae