Possible regression reading DPX files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
filmkorn
Posts: 1
Joined: 2019-06-27T18:28:45-07:00
Authentication code: 1152

Possible regression reading DPX files

Post by filmkorn »

Hello,

We've encountered an error trying to run identify or convert on some DPX files.

Code: Select all

identify: ImproperImageHeader
' @ error/dpx.c/ReadDPXImage/744.
I'm assuming this relates to these lines:

Code: Select all

  if (dpx.file.industry_size > GetBlobSize(image))
     ThrowReaderException(CorruptImageError,"ImproperImageHeader");
Unfortunately I don't know what `dpx.file.industry_size` relates to. I am unsure if the file is header is actually corrupted or the validation above is incorrect.

The file is readable in older versions 7.0.2-6 to 7.0.6-9 though, but not in 7.0.8-47 or 7.0.8-50.
Converting the file (using older versions of convert or oiiotool) produces a file readable by the latest version.

Unfortunately I am not allowed to share the file in question. So my first question would be how I can share the relevant header?

Apologies for the lack of infos.

Any help would be appreciated so we don't get stuck on an old version.

Best,

Mitja
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible regression reading DPX files

Post by magick »

Can you post a link to a DPX image that throws this exception? We need to reproduce the problem to determine why the exception is thrown and determine if there is a bug or if its a security issue.
Post Reply