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.
First commit: Changing maximal length of string read from Siemens CSA header, to prevent an overflow issue, where length of strcat(outStr, tmpstr) became 1 byte too long as tmpstr is of length 2.
(We have files where the WipMemBlock is even longer than kDICOMStrLarge and this caused an overflow which nulled pulseSequenceDetails, causing further problems downstream)
Second commit: Adding support to write out WipMemBlock strings longer than 256 bytes, and adding support to write out all alFree/adFree items of the SiemensCSAHeader for diffusion MRI data acquired with the free waveform patch from Lund University. Info on how to use the resulting JSON file can be found here: https://github.com/markus-nilsson/fwf_header_tools/tree/master/siemens#alternative-approach
(Generated a pull request for this to the master branch last Friday, sorry for that misstake)