Open
Conversation
ecf0a57 to
67ea34f
Compare
67ea34f to
2a1a255
Compare
Fuzzes the CPython _operator C module (Modules/_operator.c). Dispatches per input across seven targets: comparisons (lt/le/gt/ge/eq/ne) over random-typed value pairs to reach rich-comparison type-mismatch paths; arithmetic (add/sub/mul/mod/floordiv/truediv/pow plus bit shifts and bitwise and/or/xor) over fuzzed 4-byte integers, with pow exponents and shift counts clamped to keep the operation bounded; unary ops (neg/pos/abs/invert/index) over random-typed values; sequence ops (contains, countOf, indexOf, getitem, concat, setitem, delitem, length_hint) over fuzzed int lists; and the itemgetter / attrgetter / methodcaller helpers driven with multi-key / multi-attr forms to exercise both the single- and variadic-key code paths.
2a1a255 to
b3536b3
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 _operator C module (
Modules/_operator.c). Dispatches per input across seven targets: comparisons (lt/le/gt/ge/eq/ne) over random-typed value pairs to reach rich-comparison type-mismatch paths; arithmetic (add/sub/mul/mod/floordiv/truediv/powplus bit shifts and bitwise and/or/xor) over fuzzed 4-byte integers, with pow exponents and shift counts clamped to keep the operation bounded; unary ops (neg/pos/abs/invert/index) over random-typed values; sequence ops (contains,countOf,indexOf,getitem,concat,setitem,delitem,length_hint) over fuzzed int lists; and the itemgetter / attrgetter / methodcaller helpers driven with multi-key / multi-attr forms to exercise both the single- and variadic-key code paths.