Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an out-of-bounds read in CLDRAD that crashes RRFS post #286

Merged

Conversation

SamuelTrahanNOAA
Copy link
Contributor

@SamuelTrahanNOAA SamuelTrahanNOAA commented Apr 1, 2021

A loop in CLDRAD was reading out-of-bounds (level lm+1). This was detected when the RRFS post randomly crashed on that line about 25% of the time. The bug fix in this PR reliably prevents that crash. The developer of that code, @jaymes-kenyon, confirmed that the bug fix will not affect the algorithm (other than preventing it from crashing).

Resolves #287

@SamuelTrahanNOAA SamuelTrahanNOAA changed the title Fix an out-of-bounds read in CLDRAD Fix an out-of-bounds read in CLDRAD that crashes RRFS post Apr 1, 2021
@WenMeng-NOAA
Copy link
Collaborator

@SamuelTrahanNOAA Thanks for submitting this bug fix. Could you open a new issue at https://github.com/NOAA-EMC/EMC_post/issues for this pull request? A short description would be good enough.

@SamuelTrahanNOAA
Copy link
Contributor Author

@WenMeng-NOAA The PR is #287

@WenMeng-NOAA WenMeng-NOAA linked an issue Apr 2, 2021 that may be closed by this pull request
Copy link
Contributor

@jaymes-kenyon jaymes-kenyon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SamuelTrahanNOAA
Copy link
Contributor Author

I have confirmed this resolves #287 with over 200 tests on Jet. @jaymes-kenyon has done independent tests, and confirmed the same.

@WenMeng-NOAA
Copy link
Collaborator

The UPP standard-alone tests were conducted on WCOSS-Dell, WCOSS-Cray and Hera. No changed results were found. This PR is ready for merging.

@WenMeng-NOAA WenMeng-NOAA merged commit ba66a7d into NOAA-EMC:develop Apr 2, 2021
BoCui-NOAA added a commit to BoCui-NOAA/EMC_post that referenced this pull request Apr 2, 2021
Fix an out-of-bounds read in CLDRAD accessing level lm+1 (NOAA-EMC#286)
EricJames-NOAA pushed a commit to EricJames-NOAA/UPP that referenced this pull request Dec 14, 2022
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.

RRFS post crash due to out-of-bounds read in CLDRAD
3 participants