2009-10-08 Dan Fandrich <dan@coneharvesters.com>
+ * Demoted from EXIF_LOG_CODE_CORRUPT_DATA to EXIF_LOG_CODE_DEBUG the
+ MakerNote log messages that would result if a MakerNote were
+ rewritten by an application without rebasing the internal data
+ offsets. The exif front end (at least) aborts processing if
+ such a log message is found, but these kinds of errors are
+ far too common (and practically unavoidable) to handle them
+ this way.
* Released 0.6.18
2009-10-06 Dan Fandrich <dan@coneharvesters.com>
size_t dataofs = o + 8;
if (s > 4) dataofs = exif_get_long (buf + dataofs, n->order) + 6;
if ((dataofs + s < s) || (dataofs + s < dataofs) || (dataofs + s > buf_size)) {
- exif_log (ne->log, EXIF_LOG_CODE_CORRUPT_DATA,
+ exif_log (ne->log, EXIF_LOG_CODE_DEBUG,
"ExifMnoteCanon",
"Tag data past end of buffer (%u > %u)",
dataofs + s, buf_size);
dataofs = exif_get_long (buf + dataofs, n->order) + 6;
if ((dataofs + s < dataofs) || (dataofs + s < s) ||
(dataofs + s > buf_size)) {
- exif_log (en->log, EXIF_LOG_CODE_CORRUPT_DATA,
+ exif_log (en->log, EXIF_LOG_CODE_DEBUG,
"ExifMnoteDataPentax", "Tag data past end "
"of buffer (%u > %u)", dataofs + s, buf_size);
continue;