Repository navigation
SoundCard JSON implementation and format fixes - #635
Merged
Merged
Conversation
Merged
Codecov Report
@@ Coverage Diff @@
## master #635 +/- ##
============================================
- Coverage 83.75% 82.14% -1.62%
Complexity 197 197
============================================
Files 28 28
Lines 1428 1428
Branches 208 208
============================================
- Hits 1196 1173 -23
- Misses 111 133 +22
- Partials 121 122 +1
Continue to review full report at Codecov.
|
dbwiddis
added a commit
that referenced
this pull request
Aug 5, 2026
CodeQL java/constant-comparison, findings #635 and #636: the attempt <= MAX_BUFFER_RETRIES term in the for guard is always true. Every path out of the loop body either breaks or returns except the retry continue, and that continue requires attempt < MAX_BUFFER_RETRIES, so after the increment the guard can never fail. Remove the redundant term rather than the inner check. Doing it the other way round -- deleting the inner test on the grounds that the guard already bounds the loop -- would reintroduce the defect fixed in #3582: on the final attempt the code would continue, the guard would end the loop, and the empty return would discard a buffer that was read successfully. A comment at each site records that, since a bounded loop whose guard shows no bound invites exactly that tidy-up. Behavior is unchanged: an always-true conjunct is removed, and the loop is still bounded by the retry check.
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.
No description provided.