Skip to content

Rewrite decode.py to always pick a valid codec#19

Open
StanFromIreland wants to merge 2 commits intopython:mainfrom
StanFromIreland:decode
Open

Rewrite decode.py to always pick a valid codec#19
StanFromIreland wants to merge 2 commits intopython:mainfrom
StanFromIreland:decode

Conversation

@StanFromIreland
Copy link
Member

I don't quite get the original idea behind the fuzzer, as I assume currently it is failing with a LookupError on an invalid codec most of the time, never reaching any actual decoding. Instead, I suggest we drop the dictionary and pick a known codec. The codec rejection path is quite simple, I don't really think it is worth spending time fuzzing it.

@StanFromIreland StanFromIreland requested a review from a team March 26, 2026 20:27
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.

1 participant