From 0453a83ec4bfd51a005857009921b3537de58cc7 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 22 Oct 2026 07:48:00 -0700 Subject: [PATCH 1/2] Handle unknown XML encodings in the plistlib fuzzer --- corp-plistlib/unknown-encoding.plist | 2 ++ plist.py | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 corp-plistlib/unknown-encoding.plist diff --git a/corp-plistlib/unknown-encoding.plist b/corp-plistlib/unknown-encoding.plist new file mode 100644 index 0000000..700fdce --- /dev/null +++ b/corp-plistlib/unknown-encoding.plist @@ -0,0 +1,2 @@ + + diff --git a/plist.py b/plist.py index 97a008a..d3d5a8c 100644 --- a/plist.py +++ b/plist.py @@ -11,6 +11,9 @@ def FuzzerRunOne(FuzzerInput): return except ValueError: return + except LookupError: + # XML input can declare an unknown encoding. + return try: plistlib.dumps(data, skipkeys=True, fmt=plistlib.FMT_XML) plistlib.dumps(data, skipkeys=True, fmt=plistlib.FMT_BINARY) From f03364af168a05673e81dfb0d7b8664493512b3c Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 22 Oct 2026 08:20:06 -0700 Subject: [PATCH 2/2] Remove redundant unknown-encoding corpus seed --- corp-plistlib/unknown-encoding.plist | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 corp-plistlib/unknown-encoding.plist diff --git a/corp-plistlib/unknown-encoding.plist b/corp-plistlib/unknown-encoding.plist deleted file mode 100644 index 700fdce..0000000 --- a/corp-plistlib/unknown-encoding.plist +++ /dev/null @@ -1,2 +0,0 @@ - -