78 Commits (0208b508a0fe4079e146d43c44299a1ebcd480ee)

Author SHA1 Message Date
Kevin Backhouse bf786f4cc6
Updates to make fuzzing work. 4 years ago
Kevin Backhouse c2b52119d4 Check that findKey didn't return end(). 4 years ago
Kevin Backhouse b16cd52b88 Replace sprintf with snprintf. 4 years ago
Rosen Penev 2c57f214c5 clang-tidy: use nullptr
Found with modernize-use-nullptr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years ago
Rosen Penev b8712188bb clang-tidy: use auto
Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years ago
Rosen Penev 1b9b77c51f clang-tidy: add ending namespace comments
Found with google-readability-namespace-comments

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years ago
Rosen Penev 2e73aa9dc0 default con/destructors in headers
Helps to optimize trivially destructable stuff.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years ago
Rosen Penev 8128716287 clang-tidy: use = default
Found with modernize-use-equals-default

Ran through git clang-format

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years ago
Rosen Penev 4ceb325c8f clang-tidy: range for loop conversions
Found with modernize-loop-convert

Ran through git clang-format.

Also removed several questionable loops and replaced with simpler
algorithms.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
4 years ago
Luis Díaz Más 0bbaa6eff3 cpp: Replace auto_ptr by unique_ptr 4 years ago
Robin Mills d632988bbd Massive code prolog cleanup. 4 years ago
Luis Díaz Más 113136e134 Replace DEBUG with EXIV2_DEBUG_MESSAGES
Fixes #926
6 years ago
Kevin Backhouse 9092b422e6 Prevent out-of-bounds read. (#868) 6 years ago
Luis Diaz Mas 6f8d8e3da6 cleanup header inclusions in API 7 years ago
Dan Čermák 962962a8e9 Port Iptc::printStructure & getUshort to slices API
This fixes #211, #210, #209
7 years ago
Dan Čermák fec6535ae8 [binaryToString] Reimplement using Slices
- reimplement binaryToString:
  - it now accepts a Slice and nothing else
  - it does not return a std::string but instead a proxy object that implements
    operator<< (this should be more efficient, as we do not need to touch the
    heap in most cases)
- addapt unit tests
- replace all occurences with the new API
7 years ago
Luis Díaz Más 603692a1d8 Copyright to Exiv2 authors 7 years ago
Dan Čermák 67dc3e691f [IptcData::printStructure] clang-format function 7 years ago
Dan Čermák b2c3b61abc [IptcData::printStructure] Remove buffer overrun
The loop condition will perform a range check correctly, but it will always
dereference bytes[i], even if i is too large and fails the second check.
=> move the bytes[i] == 0x1c check into a if, after the range check was
successfull
7 years ago
Dan Čermák efe2ccdcb6 Replaced all hardcoded error codes with ker... constants 7 years ago
tbeu 5b5987a596 Remove obsolete EXIV2_RCSID 8 years ago
tbeu 5df8b01b77 Remove obsolete svn revision 8 years ago
Robin Mills 6d5c2c3256 Getting ready to release v0.26 8 years ago
Robin Mills e7b804f3f5 #1108 Refactored static indent(depth) from png/tiff/jpeg to Internal::indent(depth) 9 years ago
Robin Mills 09c734fbcd #1108. Refactored the IPTC printStructure code from png/jpeg/tiff into iptc.cpp 9 years ago
Andreas Huggel fd80993ab0 Updated copyright notice. 10 years ago
Robin Mills 4e530fbce0 Bumping the copyright notice again. (re-doing 3089 without breaking the build!) 12 years ago
Robin Mills a297d2b69e Rollback 3089 - somehow it's broken the build! 12 years ago
Robin Mills da1ed8c536 Bumping the copyright notice in src &samples from 2012 to 2013 12 years ago
Andreas Huggel 0d397b95c7 Updated copyright message for 2012. 13 years ago
Robin Mills ebfb513a21 Removing the casts which were regrettably added with SVN: 2525. 14 years ago
Robin Mills b960062f90 EPS: fixed a cast and removed a useless comment. 14 years ago
Robin Mills 67c98c21c4 Issue: 777
Added #include <iterator> to iptc.cpp
Added epsimage.{cpp|h} and version.{cpp|h} to the DevStudio build environments.
Some compilation issues remain in VS2010/64 bit build and those fixes will be submitted separately.
14 years ago
Andreas Huggel 3f478a2ca2 #775: Sort IPTC data by record number when encoding (Matthias Baas). 14 years ago
Andreas Huggel 7770151915 Updated Copyright message for 2011. 15 years ago
Andreas Huggel dc264bc00d #476, #614: Introduced class LogMsg for enhanced logging, migrated all existing warnings and error messages (not the exceptions) to use the new logic. Every log message now has a type (debug, info, warning, error). Applications can set a logging level to determine which messages are processed and supply a custom log message handler at runtime. (Based on a contribution by Simson Garfinkel.) 15 years ago
Andreas Huggel 06ce0d18b6 - Introduced exiv2.hpp as a wrapper to include all Exiv2 objects. (Renamed existing exiv2.hpp to exiv2app.hpp)
- Changed Sony/Minolta pretty-print function to print EV value
- Renamed rcsid.hpp to rcsid_int.hpp, do not publish it anymore
15 years ago
Andreas Huggel 6d496a4888 Updated Copyright notice for 2010. 15 years ago
Andreas Huggel 763b4f7933 Removed trailing whitespace. 16 years ago
Andreas Huggel 370af5c8a3 Merged all changes from the unstable branch into the trunk. 16 years ago
Andreas Huggel 8a6d9dbc42 Updated Copyright notice for 2009. 17 years ago
Andreas Huggel 7a6907c10d Fixed conversion special case: do not add an empty Exif datum if the (std) conversion failed. 17 years ago
Andreas Huggel 7b6652a910 Added ExifData pointer to Metadatum::write et al, added CanonCs.LensType and pretty-print function, changed exiv2 tool to use the new methods to print interpreted values (which allows it to refer to other metadata). 17 years ago
Andreas Huggel 0d55992e2f Merged unstable branch to trunk. 17 years ago
Andreas Huggel d8e6b51c69 Refactored op<< for Metadatum, introduced std::string Metadatum::print(). Fixes #474. 18 years ago
Andreas Huggel 3ac665a305 Added 2008 to Copyright notice. 18 years ago
Andreas Huggel 579bc91821 Minor changes. 18 years ago
Andreas Huggel da6266da3b Copyright updates for 2007 19 years ago
Andreas Huggel 0b589cf159 Check size of IPTC dataset before decoding it. Fixes bug #503. 19 years ago
Andreas Huggel 2c82879afe Added second attempt to parse an IPTC field into a string value, if parsing the actual type fails. Fixes bug #501. 19 years ago