Bug #487

Crash in exiv2.exe (built with VC++ 2005 Express) when examing TIFF images

Added by Dimitri Schoolwerth over 12 years ago. Updated about 10 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:0.12


When running exiv2.exe (with as parameter any TIFF image), there's a crash in tiffparser.cpp:154 (function TiffDecoder::findDecoder) while constructing TiffDecoderInfo::Key.

Additional information:

findDecoder's parameters are already invalid (make, extendedTag, group), and when simplifying the function to use a single unsigned int param it still has the wrong value. Perhaps there's a wrong forward (typedef) declaration somewhere?
Applying the attached patch fixes the problem (patch from within src/ )
The official exiv2.exe doesn't have this issue, nor does a local clean build on OS X (a patched build also still works correctly).

tiffvisitor.cpp.patch Magnifier (381 Bytes) Redmine Admin, 21 Sep 2006 08:10


#1 Updated by Andreas Huggel over 12 years ago

Same problem with MSVC 7.1/2003. That was never tested because the regressions don't include any TIFF/RAW tests yet and MSVC builds receive minimum attention here...

Thanks a lot for reporting this and the fix in particular - it is totally beyond me. The only thing I notice is that the Tag and Group namespaces are in tiffcomposite.hpp. None of the compilers complains about anything though.


Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux