Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed another issue with invalid DICOM images.
Fixed issue when processing an invalid DICOM image where the number of pixels stored does not match the expected number of pixels (too less) and the combination of BitsAllocated and BitsStored is really unusual (e.g. 1 bit stored, but 52 bits allocated). In cases where the last pixel (e.g. a single bit) does not fit into the buffer of the input pixel data, a buffer overflow occurred on the heap. Now, the last entry of the buffer is filled with the smallest possible value (e.g. 0 in case of unsigned data). Thanks to Ding zhengzheng <[email protected]> for the report and the sample file (PoC).
- Loading branch information