Skip to content

Fix OneShotReassociationVisitor::HandleNeg() crash found by fuzzing.#4041

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_893684576
Apr 2, 2026
Merged

Fix OneShotReassociationVisitor::HandleNeg() crash found by fuzzing.#4041
copybara-service[bot] merged 1 commit intomainfrom
test_893684576

Conversation

@copybara-service
Copy link
Copy Markdown

Fix OneShotReassociationVisitor::HandleNeg() crash found by fuzzing.

The crash happens by dereferencing the iterator of an empty all_elements() range. This occurs when elements in an associative addition cancel out (e.g., x + (-x)), leaving the AssociativeElements with no variables or constants.

The crash happens by dereferencing the iterator of an empty `all_elements()` range. This occurs when elements in an associative addition cancel out (e.g., `x + (-x)`), leaving the `AssociativeElements` with no variables or constants.

PiperOrigin-RevId: 893724214
@copybara-service copybara-service bot merged commit f452e8c into main Apr 2, 2026
@copybara-service copybara-service bot deleted the test_893684576 branch April 2, 2026 22:12
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