Open
Conversation
1115806 to
2dcd163
Compare
2dcd163 to
59ca822
Compare
Fuzzes the CPython _locale C module (Modules/_localemodule.c) through its two Unicode-consuming entry points. Dispatches per input to either locale.strxfrm() — the locale-aware string-to-transform-key conversion that exercises the underlying wcsxfrm() wrapper and its wchar_t encode/decode boundaries — or locale.strcoll(), which compares two fuzzed Unicode strings via wcscoll() to drive the locale-aware collation path. Inputs are Unicode text drawn from the fuzzed byte stream, so multibyte, surrogate-range, and astral-plane code points all reach the C conversion layer.
59ca822 to
a3394d3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fuzzes the CPython _locale C module (
Modules/_localemodule.c) through its two Unicode-consuming entry points. Dispatches per input to eitherlocale.strxfrm()— the locale-aware string-to-transform-key conversion that exercises the underlyingwcsxfrm()wrapper and itswchar_tencode/decode boundaries — orlocale.strcoll(), which compares two fuzzed Unicode strings viawcscoll()to drive the locale-aware collation path. Inputs are Unicode text drawn from the fuzzed byte stream, so multibyte, surrogate-range, and astral-plane code points all reach the C conversion layer.