We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The issue comes whenever a zero value is passed to one of the width,height parameter of the tile.
libdicom/src/dicom-file.c
Lines 335 to 363 in 345eda5
Debugging it with gdb shows the following:
With the value of width and frame_width set to 0.
This is possible by crafting a DCM file with the following byte sequences:
The application just crashes with no further consequence. This issue does not seem to affect related products such as openslide.
The solution would be to check if the provided values are different from zero, and returns an error whenever this happens.
Attached the payload:
floatpe.zip
The text was updated successfully, but these errors were encountered:
fix a /0 in frame parse
17d7e75
Thanks voidz0r See #83
I fixed this with 17d7e75 and credited you in the changelog (I hope that's OK).
Thank you for the very clear bug report!
Sorry, something went wrong.
I did a little quick grepping and I couldn't see any similar /0 issues.
Looks good to me. Thanks for the mention in the changelog :)
No branches or pull requests
Introduction
The issue comes whenever a zero value is passed to one of the width,height parameter of the tile.
libdicom/src/dicom-file.c
Lines 335 to 363 in 345eda5
Debugging it with gdb shows the following:
With the value of width and frame_width set to 0.
This is possible by crafting a DCM file with the following byte sequences:
Impact
The application just crashes with no further consequence. This issue does not seem to affect related products such as openslide.
Solution
The solution would be to check if the provided values are different from zero, and returns an error whenever this happens.
Attached the payload:
floatpe.zip
The text was updated successfully, but these errors were encountered: