Project

General

Profile

Actions

Bug #427

closed

JPEG Decoder does not report an error with malformed pixel data

Added by Jörg Riesmeier about 13 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Library
Target version:
Start date:
2012-06-27
Due date:
% Done:

100%

Estimated time:
Module:
dcmjpeg und andere?
Operating System:
Compiler:

Description

see: http://forum.dcmtk.org/viewtopic.php?f=1&t=3475

Extract from the dump:

(0002,0010) UI =JPEGLossless:Non-hierarchical-1stOrderPrediction #  22, 1 TransferSyntaxUID
...
(7fe0,0010) OW fffe\e000\0000\0000\fffe\e000\b39a\0003\d8ff\c3ff\0b00\0210\0200... # 242610, 1 PixelData

Pixel data on the main dataset level is not encapsulated as Pixel Items. You won't get any warnings or errors from using dcmdjpeg on such a file, but the pixel data is not decompressed, since the decoder assumes that it is already decompressed (for instance in Icon Image Sequence).

The same problem will probably show up in other supported compression types in DCMTK.

Actions #1

Updated by Andrew Chiw over 12 years ago

  • Subject changed from JPEG-Decoder meldet keinen Fehler bei fehlerhafter Kodierung der Pixel-Daten to JPEG Decoder does not report an error with malformed pixel data
Actions #3

Updated by OFFIS DICOM Team about 11 years ago

  • Assignee set to Michael Onken

If the transfer syntax is "encapsulated" and pixel data on main dataset level is "uncompressed" (e.g. length other than undefined), then the decoder should bail out with an error.

Note that uncompressed pixel data within a compressed dataset is permitted in the Icon Image Sequence, so this error should only be triggered on the main dataset level.

Actions #4

Updated by Jörg Riesmeier over 8 years ago

  • Description updated (diff)
Actions #5

Updated by Michael Onken over 8 years ago

The forum posting denoted under bullet 2 (http://forum.dcmtk.org/viewtopic.php?f=1&t=3842&p=15299#p15299) refers to a different problem, which was handled in Bug #571.

Actions #6

Updated by Michael Onken over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Closed with commit 1677f2.

Test files are found in OFFIS' (private) image collection under the related issue number.

Actions

Also available in: Atom PDF