Skip to content

Conversation

@benjysmith
Copy link

When running some simulations on systems with a large number of threads available (>24), usages of fun_loc can cause segmentation faults, due to attempting to read/write past the end of the array, which is initialised to a fixed length of 24.

This change limits the number of iterations in the various loops that access fun_loc to be 24 at most.

This PR makes no changes to the external API.

@hansec
Copy link
Owner

hansec commented Jan 5, 2026

Closing in lieu of merge to upstream OFT repo (OpenFUSIONToolkit#207).

@hansec hansec closed this Jan 5, 2026
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.

2 participants