533: Applied patch 5_recognize_small_corrupt_IRBs (Michael Ulbrich, Volker Grabsch)

v0.27.3
Andreas Huggel 16 years ago
parent bc9d685210
commit 110c487db4

@ -175,6 +175,13 @@ namespace Exiv2 {
#ifdef DEBUG #ifdef DEBUG
std::cerr << "pPsData doesn't start with '8BIM'\n"; std::cerr << "pPsData doesn't start with '8BIM'\n";
#endif #endif
if (position < sizePsData) {
#ifndef SUPPRESS_WARNINGS
std::cerr << "Warning: "
<< "Invalid or extended Photoshop IRB\n";
#endif
return -2;
}
return 3; return 3;
} // Photoshop::locateIrb } // Photoshop::locateIrb

Loading…
Cancel
Save