Skip to content

Handle unknown XML encodings in the plistlib fuzzer - #61

Merged
StanFromIreland merged 2 commits into
python:mainfrom
JelleZijlstra:codex/plistlib-unknown-encoding
Oct 22, 2026
Merged

StanFromIreland merged 2 commits into
python:mainfrom
JelleZijlstra:codex/plistlib-unknown-encoding

Conversation

@JelleZijlstra

@JelleZijlstra JelleZijlstra commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Catch LookupError from plistlib.loads() when XML declares an unknown encoding.

In this CPython CIFuzz job, encoding="Cp772" raises LookupError, which escapes the Python target and makes the C++ harness call abort(). The resulting ASan report is an intentional harness abort for an expected parsing exception.

Comment thread corp-plistlib/unknown-encoding.plist Outdated
@JelleZijlstra
JelleZijlstra marked this pull request as ready for review October 22, 2026 15:21
@JelleZijlstra
JelleZijlstra requested a review from a team as a code owner October 22, 2026 15:21
@StanFromIreland
StanFromIreland merged commit 9924b3b into python:main Oct 22, 2026
3 checks passed
@StanFromIreland

Copy link
Copy Markdown
Member

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants