Commit Graph

81 Commits

Author SHA1 Message Date
Kevin Backhouse
8dc87a1214 Add bounds check. (#840) 2019-05-15 08:58:38 +02:00
Luis Díaz Más
989acd18c7 Fix cppcheck issues: uninitMemberVar & uninitVar 2018-10-11 13:40:03 +02:00
Luis Díaz Más
603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
Luis Díaz Más
4161099b91 Fix warnings reported by MSVC 2018-09-10 10:31:00 +02:00
Luis Diaz Mas
00f86a8df4 Cleanup unused variable warnings 2018-08-24 16:45:52 +02:00
Dan Čermák
b761c6d056 Remove useless casts in preview.cpp 2018-06-11 22:55:49 +02:00
Dan Čermák
fe70939f54 Fix addition overflows in range checks in LoaderTiff::getData
Several checks for extracted values performed no overflow checks on the
addition. They can be tricked into passing, albeit the individual summands are
too large.
=> use Safe::add() which now aborts when an overflow occurs
This fixes #366
2018-06-11 22:55:49 +02:00
Dan Čermák
937a1a2bd0 Add offset_ and size_ safely in LoaderExifJpeg::LoaderExifJpeg
offset_ can become arbitrarily large and overflows once its added to size_,
this causes all kinds of problems further in the code when offset_ is used
again.
=> Use Safe::add() to catch potential overflows
This fixes #365.
2018-06-11 22:55:41 +02:00
tbeu
9569ef2fda Use auxiliary variable
V807 Decreased performance. Consider creating a reference to avoid using the 'image_.exifData()' expression repeatedly. preview.cpp 530
2018-06-02 09:43:20 +02:00
Luis Diaz Mas
67a5a74115 Throw when trying to write out of the buffer 2018-05-26 09:59:37 +02:00
Luis Diaz Mas
863aaebc92 Use index to access buf.pData_ 2018-05-26 09:59:37 +02:00
Luis Diaz Mas
ed874703ad Prevent call to memcpy with size==0 2018-05-26 09:59:37 +02:00
Dan Čermák
efe2ccdcb6 Replaced all hardcoded error codes with ker... constants 2018-02-18 09:28:57 +01:00
tbeu
5b5987a596 Remove obsolete EXIV2_RCSID 2017-11-19 11:17:12 +01:00
tbeu
5df8b01b77 Remove obsolete svn revision 2017-11-19 11:17:11 +01:00
clanmills
882c825f1a Fix https://github.com/Exiv2/exiv2/issues/16 2017-07-06 10:38:39 +01:00
Robin Mills
82dbe6199d https://github.com/Exiv2/exiv2/issues/11 Closed. Coincidentally Raphael reported issues with Visual Studio 2015 Community Edition. Issue 11 and Raphael's issues should now be resolved. 2017-06-29 22:13:26 +01:00
Robin Mills
44da4724b3 #1175 Correction to r4756 Another three casts required to build with Visual Studio (size_t code ripple) 2017-04-23 10:58:54 +00:00
Robin Mills
6d5c2c3256 Getting ready to release v0.26 2017-03-08 20:42:28 +00:00
Robin Mills
b15a401569 #1187 Thank You to Taras for the patch. 2016-05-30 14:45:28 +00:00
Andreas Huggel
fd80993ab0 Updated copyright notice. 2015-05-02 11:55:40 +00:00
Robin Mills
0df8356a56 #1029. Thank You, Thomas for reporting this and providing the patch. 2015-02-12 01:24:26 +00:00
Robin Mills
d393b0fa7e trunk: exiv2 v0.25 2014-12-25 13:55:57 +00:00
nkbj
284050623b Feature request #933: Add support for Casio makernotes. Thanks goes to T Modes for the patch. 2013-12-07 04:38:20 +00:00
Robin Mills
4e530fbce0 Bumping the copyright notice again. (re-doing 3089 without breaking the build!) 2013-07-24 05:15:04 +00:00
Robin Mills
a297d2b69e Rollback 3089 - somehow it's broken the build! 2013-07-24 05:05:52 +00:00
Robin Mills
da1ed8c536 Bumping the copyright notice in src &samples from 2012 to 2013 2013-07-24 03:12:38 +00:00
Andreas Huggel
bd90c19219 #819: Fixed PentaxDng offsets so that they are relative to the beginning of the makernote, added support for the PentaxDng preview image. 2012-04-11 16:02:44 +00:00
Andreas Huggel
0d397b95c7 Updated copyright message for 2012. 2012-03-22 15:19:35 +00:00
Andreas Huggel
d109589267 Added support for CR2 IFD2 image preview. (An uncompressed TIFF image without white-balance correction.) 2012-03-21 14:22:47 +00:00
Andreas Huggel
e4475fb453 Casts added to make 64bit MSVC compiler happy. 2011-09-01 07:58:45 +00:00
vog
45b729bc70 Improved one of the native preview warning messages 2011-08-25 04:13:22 +00:00
vog
058f1ea221 Added support for Illustrator previews (%AI7_Thumbnail) in EPS files, decoded to *.pnm 2011-08-17 21:10:53 +00:00
vog
a9d9a4a53c Added missing "const" 2011-07-29 12:11:09 +00:00
vog
bd7254aed6 Added native preview filter "hex-irb" that is needed for Photoshop EPS previews 2011-07-18 15:24:42 +00:00
vog
72bdc994f0 Added helper function decodeHex() that is needed to decode some types of EPS previews 2011-07-18 15:24:35 +00:00
vog
aad2a3d32f Small bugfix 2011-07-18 15:24:31 +00:00
vog
08ef2ff9af Added missing type cast 2011-07-18 15:24:25 +00:00
vog
da6051a3a0 Added the possibility to define a filter in the NativePreview mechanism, e.g. for hex decoding 2011-07-18 15:24:16 +00:00
vog
640921e6c0 make cast in decodeBase64() more explicit 2011-06-30 09:19:39 +00:00
Robin Mills
25b4bf2ce9 Added cast to enable compilation with DevStudio VS2003 and VS2005. 2011-06-30 05:57:39 +00:00
vog
115ba5a04e Improved epsimage.cpp and preview.cpp to avoid unnecessary type casts, also make some implicit type casts explicit for clarity 2011-06-29 12:16:34 +00:00
Robin Mills
e2c570a1ce EPS project.
added long ul2Data(byte* buf, size_t s, ByteOrder byteOrder) to the DevStudio 64 bit build.
This rippled requiring casts to differentiate ul2Data(byte*, uint32_t,size_t) and ul2Data(byte*,size_t,size_t)
Team review requested.
2011-06-28 04:40:25 +00:00
vog
3c1d3d993b #689: Added support for native DOS EPS previews 2011-06-27 16:39:07 +00:00
vog
3342822ad7 Provide generic mechanism for native previews 2011-06-27 16:38:53 +00:00
vog
155b37d45f #689: Support XMP previews that use the old xapGImg: namespace prefix 2011-06-24 14:59:37 +00:00
vog
9e36ca5dbf #689: Provide support for JPEG previews stored in the XMP metadata 2011-06-23 11:12:14 +00:00
vog
49f4536c36 #689: Improved block indentation 2011-06-23 11:12:10 +00:00
Andreas Huggel
7770151915 Updated Copyright message for 2011. 2011-02-13 14:08:44 +00:00
Andreas Huggel
ad094e05be #745: Fixed leftover x-raw MIME type. 2010-12-06 15:36:36 +00:00