Skip to content

r.sim.water: fix buffer overflow, OpenMP data races, and flaky parallel tests - #7523

Closed
anzalkabeer wants to merge 4 commits into
OSGeo:mainfrom
anzalkabeer:r-sim-water-prng-fixes
Closed

anzalkabeer wants to merge 4 commits into
OSGeo:mainfrom
anzalkabeer:r-sim-water-prng-fixes

Conversation

@anzalkabeer

Copy link
Copy Markdown

The C-level PRNG thread-safety and buffer overflow fixes
The whitespace/EDITORCONFIG formatting cleanup
The synthetic parallel pytest integration and .pack file regeneration
The final test suite assertion restorations

- Add missing bounds check exit (continue) in hydro.c loop
- Replace thread-unsafe G_drand48() in OpenMP threads with thread-safe LCG PRNG
- Prevent concurrency data races on shared grids by adding OpenMP atomic and critical sections
@github-actions github-actions Bot added raster Related to raster data processing Python Related code is in Python C Related code is in C module tests Related to Test Suite labels Jun 8, 2026
@anzalkabeer anzalkabeer changed the title R sim water prng fixes r.sim.water: fix buffer overflow, OpenMP data races, and flaky parallel tests Jun 8, 2026
@anzalkabeer

Copy link
Copy Markdown
Author

@echoix , @Valyrian-Code , this is the new PR for the following fixes are mention into the its description

@petrasovaa

Copy link
Copy Markdown
Contributor

Generating reference data in the test doesn't make sense. Small, focused PRs would be easier to review.

@petrasovaa petrasovaa closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C module Python Related code is in Python raster Related to raster data processing tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants