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

Development #745

Closed
Closed

Conversation

markus-nilsson
Copy link

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)

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.
support for writing out the adFree and alFree 
blocks for the FWF sequence from Lund. 

Tools to use the output can be found at

https://github.com/markus-nilsson/fwf_header_tools/tree/master/siemens#alternative-approach
neurolabusc added a commit that referenced this pull request Dec 17, 2023
@neurolabusc
Copy link
Collaborator

@markus-nilsson I have integrated your PR into the development branch, but I do not have concrete data to validate this solution. To ensure good regressions are not introduced, new features need a validation dataset like this one that provides DICOMs as well as the correct BIDS solution.

yarikoptic added a commit to neurodebian/dcm2niix that referenced this pull request Apr 29, 2024
* tag 'v1.0.20240202': (135 commits)
  Update submodules
  Refactor (rordenlab#791)
  gantry tilt tolerance (rordenlab#791)
  GE step description (rordenlab#790)
  PatientOrient -> Patient Position (rordenlab#786)
  Prevent shell expansion (rordenlab#789)
  Replace presumably accidental bitwise AND operations
  Update JasPer API calls for compatibility with newer versions of the library
  Update divest logic, reducing duplication and supporting new mode of operation
  Fix PhaseEncodingDirectionDisplayed for GE
  Update date
  GE Diffusion issue rordenlab#777 minor
  GE Diffusion issue rordenlab#777
  Kludge for issue 775 (rordenlab#775)
  add docstrings
  better python wrapper I/O
  issue 769: Mildly relax the check for bvec components > 1.
  PRs (rordenlab#745; rordenlab#768)
  Edge cases (rordenlab#763, rordenlab#749)
  Code spell
  ...
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