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

BUG: Fix GDCM crash when reading DICOM image #168

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Mar 19, 2024

GDCM crashed when a DICOM image that had 32 bits allocated. The problem was that DoOverlayCleanup returned failure but that return value was ignored and later an empty buffer read was attempted.

This fix avoids the crash by not ignoring the failed overlay cleanup. Applications can detect the error and switch to DCMTK IO to read such files (DCMTK can correctly read files with 32 bits allocated).

GDCM crashed when a DICOM image that had 32 bits allocated.
The problem was that DoOverlayCleanup returned failure but that return value was ignored and later an empty buffer read was attempted.

This fix avoids the crash by not ignoring the failed overlay cleanup.
Applications can detect the error and switch to DCMTK IO to read such files (DCMTK can correctly read files with 32 bits allocated).
@malaterre malaterre merged commit 232ee22 into malaterre:master Mar 21, 2024
3 checks passed
@malaterre
Copy link
Owner

thanks !

@lassoan lassoan deleted the fix-32bits-stored-crash branch March 22, 2024 22:33
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