Skip to content

Conversation

robertrueger
Copy link

We have noticed a couple of issues with large temporary strings inside of json-fortran causing stackoverflows on Windows builds with ifort. Basically all places where a string that could be very large (e.g. the entire JSON representation as one string) ends up in a temporary could overflow the stack.

I have workarounds in two places in this pull request. For our usage, that resolved the issues on Windows builds with iforts. I did not go through the rest of the codebase to scan for similar places that might be prone to overflowing.

@jacobwilliams
Copy link
Owner

Thanks! I'll take a look (and also see if I see any other places this might be an issue)

@jacobwilliams jacobwilliams merged commit cde2620 into jacobwilliams:master Aug 4, 2024
5 checks passed
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