Skip to content

Fix off-by-one in TruthFailureSubject.factValue. - #1713

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1002358893
Oct 19, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1002358893

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Fix off-by-one in TruthFailureSubject.factValue.

The "index too high" check only caught indices greater than the number of facts with that key, so an index exactly equal to the count fell through and blew up with IndexOutOfBoundsException when the code tried to fetch that fact.

Fixes #1712

RELNOTES=n/a
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1712 from rootkiller6788:fix-truthfailure-factvalue-index-bounds b4dca51

The "index too high" check only caught indices greater than the number of facts with that key, so an index exactly equal to the count fell through and blew up with `IndexOutOfBoundsException` when the code tried to fetch that fact.

Fixes #1712

RELNOTES=n/a
COPYBARA_INTEGRATE_REVIEW=#1712 from rootkiller6788:fix-truthfailure-factvalue-index-bounds b4dca51
PiperOrigin-RevId: 1002416678
@copybara-service
copybara-service Bot merged commit 16efe1b into master Oct 19, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the test_1002358893 branch October 19, 2026 17:08
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