#1242 Issue warning when we encounter erroneous Exif\0\0 in the Exif UUID box.

v0.27.3
Robin Mills 9 years ago
parent 099dd70c59
commit 05f56e95af

@ -18,17 +18,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
/*!
@file jp2image.hpp
@brief JPEG-2000 image, implemented using the following references:
<a href="http://jpeg.org/public/fcd15444-6.pdf">ISO/IEC JTC 1/SC 29/WG1 N2401: JPEG 2000 Part 6 FCD 15444-6</a><br>
@version $Rev: 3091 $
@author Gilles Caulier (cgilles)
<a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
@author Marco Piovanelli, Ovolab (marco)
<a href="mailto:marco.piovanelli@pobox.com">marco.piovanelli@pobox.com</a>
@date 12-Mar-2007, marco: created
*/
/*
File: jp2image.cpp
Version: $Rev: 4629 $
*/
#ifndef JP2IMAGE_HPP_
#define JP2IMAGE_HPP_

@ -18,10 +18,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
/*
File: jp2image.cpp
Version: $Rev$
*/
*/
// *****************************************************************************
#include "rcsid_int.hpp"
EXIV2_RCSID("@(#) $Id$")
@ -344,6 +346,10 @@ namespace Exiv2
if (memcmp(exifHeader, &rawData.pData_[i], sizeof(exifHeader)) == 0)
{
pos = i+sizeof(exifHeader);
#ifndef SUPPRESS_WARNINGS
EXV_WARNING << "Reading non-standard UUID-EXIF_bad box in " << io_->path() << std::endl;
#endif
}
}
@ -631,7 +637,7 @@ namespace Exiv2
box.type = getLong(bheaderBuf.pData_ + 4, bigEndian);
#ifdef DEBUG
std::cout << "Exiv2::Jp2Image::doWriteMetadata: Find box type: " << bheaderBuf.pData_ + 4
std::cout << "Exiv2::Jp2Image::doWriteMetadata: box type: " << toAscii(box.type)
<< " length: " << box.length << std::endl;
#endif

Loading…
Cancel
Save