bug fix: out of bounds array indexing error #895
Merged
Merged
Conversation
Collaborator
|
This does seem to be producing legitimate value regressions in the Reach-Lakes case, @scrasmussen are you expecting this? |
6d13ae5 to
c6614e8
Compare
rcabell
approved these changes
Jun 5, 2026
rcabell
left a comment
Collaborator
There was a problem hiding this comment.
While it would have been nice to have the message still have the variable name, I think this is a reasonable and safe approach
Member
Author
It seems like the message doesn't have the variable name, since the other Thanks for reviewing! I'll go ahead and merge it |
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.
TYPE: bug fix
KEYWORDS: array bounds, indexing error, debugging
SOURCE: Soren Rasmussen, NSF NCAR
DESCRIPTION OF CHANGES:
indexis the one being worked on, nottrim(fileMeta%varNames(iTmp))whoseiTmpindexing variable isn't even being set in that do loop-O0 -g -fbacktrace -fcheck=bounds -fsanitize=address -fno-omit-frame-pointer