Actions
Bug #696
closedSegmentation fault in dcmimgle when using LUTs >= 32bit
Start date:
2016-10-12
Due date:
% Done:
100%
Estimated time:
Module:
dcmimgle
Operating System:
32-bit
Compiler:
Description
Lines like const unsigned long ocnt = OFstatic_cast(unsigned long, inter->getAbsMaxRange());
in DiMonoOutputPixelTemplate (dcmtk/dcmimgle/dimoopxt.h) limit the number of LUT entries to what is representable by an unsigned long (Uint32 in most cases). These lines should be identified and changed to size_t instead.
Files
Updated by Jörg Riesmeier almost 9 years ago
I don't think that changing the data type is a proper solution to this issue. An array with more than 4.2 billion entries is certainly not desirable - at least not for optimization purposes.
Updated by Jan Schlamelcher almost 9 years ago
- File overflow_696.patch overflow_696.patch added
Updated by Jörg Riesmeier almost 9 years ago
- Status changed from New to Closed
- Assignee changed from Thorben Hasenpusch to Jörg Riesmeier
- % Done changed from 0 to 100
- Operating System set to 32-bit
Fixed with commit a8cf5d1.
Actions