diff options
| author | 2026-01-22 13:15:46 +0100 | |
|---|---|---|
| committer | 2026-01-22 13:16:28 +0100 | |
| commit | 06d92b11523115b5813ee3235f6ea052b98e6d2d (patch) | |
| tree | 56de8771f6f8cd480a5a0717cc58dcf4779a725a /src | |
| parent | 2b5b43bdb301eeb7e3396833af25212aeb09214f (diff) | |
| download | libplist-06d92b11523115b5813ee3235f6ea052b98e6d2d.tar.gz libplist-06d92b11523115b5813ee3235f6ea052b98e6d2d.tar.bz2 | |
plist: Fix plist_is_binary() not checking for NULL input
Fixes issue #300
Credit to @jasonmli8
Diffstat (limited to 'src')
| -rw-r--r-- | src/plist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
