5515 Commits (cb5135f772abc5fd2c6cf8682a70061c497f272d)
 

Author SHA1 Message Date
Daniel Zucchetto cb5135f772 Add test for Canon M100 ModelID 7 years ago
Daniel Zucchetto 4e55af8691
Support Canon M100 7 years ago
Dan Čermák 4b24e011dc Free potentially allocated regexes from Params::evalGrep
In Params::evalGrep regcomp allocates some internal space for the regex objects,
which must be freed manually via regfree(). This was however only done when the
call to regcomp() failed and not on success. As the regexes are needed later,
they have to be deallocated by the destructor.
7 years ago
D4N 9d646f6d78
Merge pull request #312 from Exiv2/gitlab-ci-test
Add GitLab CI
7 years ago
Dan Čermák fe5ca11396 [travis] Move travis scripts to ci/ folder 7 years ago
Dan Čermák b2c243cba3 Add gitlab pipeline status badge to README.md 7 years ago
Dan Čermák 8c1be86104 [cmake] Add -Wdouble-promotion & -Wcomma only for certain clang versions
-Wdouble-promotion is not available in clang 3.4.2
-Wcomma is not available in clang 3.8.1
7 years ago
Dan Čermák 35bf292d37 [cmake] Add -Warray-bounds=2 only for gcc > 5.0 7 years ago
Dan Čermák bf51a76e4e [safe_op] Fix ODR violation in compiler builtin specializations
The compiler instrinsics are exposed via fully specialized template functions
which must not be defined twice (which they accidentally were). Declaring them
as inline fixes this issue.
7 years ago
Dan Čermák 943ba1773e [GitLab] Add .gitlab-ci.yml
- add a GitLab CI configuration file to run a pipeline on the major Linux
  distros
- add a build script that builds all build combinations of exiv2 & runs the test
  suite
7 years ago
D4N e1f468653b
Merge pull request #258 from D4N/fix_warnings
Fix some of the compiler warnings
7 years ago
Dan Čermák 1d7dd0892c Fix errors not being passed by reference to error() function
- error was passed by value, but a new error message should be appended to it
  => error must be called by reference
- use default parameters of error() in http()
- rename variables to fix shadowing
7 years ago
Dan Čermák 571f97e277 Use __attribute__((format)) in clang too 7 years ago
Dan Čermák 222c65be63 Refactor Nikon case in bigtiffimage
- remove name shadowing
- user std::vector<> instead of raw array
7 years ago
Dan Čermák 4c4d568036 Enforce a valid Value (instead of assert) 7 years ago
Dan Čermák 79f8d63a8b Whitespace cleanup 7 years ago
Dan Čermák e2b06856d8 Change type of size to uint64_t to avoid a useless cast
The variable size is only populated via getUint64_t => uint64_t is better suited
then unsigned long
7 years ago
Dan Čermák 316548d2de Fix shadowing issues
- renamed variables that were shadowing a previously defined variables
7 years ago
Dan Čermák 5e36363138 Fix double promotion issues 7 years ago
Dan Čermák bc58752d18 Remove useless casts
This commit removes only casts where type A is cast to the exactly same
type (and not to a platform dependent typedefs)
7 years ago
Dan Čermák 9583e447b2 [travis] Run apt-get update before installing packages 7 years ago
Dan Čermák bb2019149a [safe_op] Don't use overflow intrinsics in MSVC 2005 7 years ago
Fredrik lingvall 5aed467f42 Clarified the workflow description (after input from piponazo). 7 years ago
Fredrik lingvall 2665549327 Corrected the order of git commands for a PR in the code contribution workflow description. 7 years ago
Luis Díaz Más e32323d7c7 Simplify usage of strerror_r.
- Define STRERROR_R_CHAR_P properly on CMake and use it on futils.cpp
- We use now _GNU_SOURCE to determine which version of strerror_r to use
- strError only throws if ret==ERANGE
- Remove STRERROR_R_CHAR_P. It has been never used
- sort defines in config.h.cmake
- Remove EXV_HAVE_DECL_STRERROR_R that is not used anymore
- Remove EXV_HAVE_STRERROR. C++98 always will have it
7 years ago
D4N b8b73fdcf6
Merge pull request #295 from Exiv2/Redmine1348
patch: add Tamron SP AF 150-600mm F/5-6.3 VC USD G2 (A022) for Nikon
7 years ago
Robin Mills 4239ff6734 Test for Tamron SP AF 150-600mm F/5-6.3 VC USD G2 (A022) for Nikon 7 years ago
Robin Mills d22fff4834 Lens Recognition for Tamron SP AF 150-600mm F/5-6.3 VC USD G2 (A022) for Nikon
http://dev.exiv2.org/issues/1348
7 years ago
Luis Díaz Más f86542e5f6 Remove EXV_HAVE_STRTOL 7 years ago
Luis Díaz Más d55b2b1b65 Remove HAVE_STDLIB_H check and replace stdlib.h by cstdlib 7 years ago
Luis Díaz Más aded1965c5 Remove EXV_HAVE_MEMSET 7 years ago
Luis Díaz Más abd28a6a9e Remove EXV_HAVE_STRCHR 7 years ago
D4N 4bcec183d5
Merge pull request #286 from D4N/yet_another_testsuite_update
Yet another testsuite update
7 years ago
Dan Čermák b364e075c6 [testsuite] Implement DeleteFiles decorator
- Refactor FileDecoratorBase to use an arbitrary property in the decorated
  class where the list of files is saved
- Add DeleteFiles decorator which deletes all files passed to it after the test
  finished
7 years ago
Dan Čermák d1714f6564 [testsuite] Fix typo and obsolete syntax 7 years ago
Dan Čermák fe98936375 [testsuite] Fixed infinite iteration in CaseMeta.__new__
The loop condition in the variable expansion loop was faulty and caused an
infinite loop when no change occured (i.e. no variables were expanded)
7 years ago
D4N 368771f3fd
Merge pull request #285 from D4N/ub_memleak_fixes
Fix some undefined behavior and memory leaks
7 years ago
Dan Čermák b1a31352b6 Add default constructor for XmpData 7 years ago
Dan Čermák fc60d97a29 Prevent passing of null-pointers to libc functions 7 years ago
Dan Čermák 2bf89f4854 Store pointers to Impl classes in auto_ptr
Pimpl class Impl is stored in raw pointers which are allocated on the heap in
the constructor. However, the constructor can throw an exception resulting in a
memory leak as the destructor is **not** invoked.
=> A smart pointer is however properly deallocated.
7 years ago
D4N c922aa7b46
Merge pull request #282 from D4N/testsuite_update
Testsuite update
7 years ago
Dan Čermák 740e4ecad1 [testsuite] Improve output in case of errors
use the msg= option of unittest.assertXyz() to improve the error
reporting
7 years ago
Dan Čermák b6d93558ee [testsuite] Added option to use different encodings for the output 7 years ago
Dan Čermák dd3bcaf41f [testsuite] Added check that test list have same length
commands, retval, stdout & stderr are lists
if they don't have the same length, they are truncated to the smallest list
thereby silently dropping test cases
=> now a ValueError is raised preventing that
7 years ago
Dan Čermák 11cd1eabf8 [testsuite] Addapt tests to new test suite structure 7 years ago
Dan Čermák c40c90141f [testsuite] Add debug mode & search directory to runner 7 years ago
Dan Čermák 4656af73bc [testsuite] Fix variable names in suite config
The variables contained a minus which must not be used in template string
variables.
=> Use underscores instead
7 years ago
Dan Čermák cac0bc9656 [testsuite] Adapt documentation to recent changes
- change from {var} => $var
- use metaclass instead of direct inheritance
7 years ago
Dan Čermák bd9d085141 [testsuite] Refactor test suite to use metaclasses & template module
The testsuite now uses python's template module for string substitutions which
allows for a more natural substitution syntax known from the shell. Also, it
allows to run the substitutions multiple times, which is not possible with
string.format().
The heavy-lifting is now performed via a metaclass, which expands all variables
on the class creation.
7 years ago
Luis Díaz Más 02aa13abf3 Install conan-dependencies DLLs into install/bin.
We also changed the way in which we copy the DLLs to the bin folder inside the build directory.
Before we were directly placing the conan-deps DLLs into the bin folder directly. Now we place
them into a directory called conanDlls, and from there we copy them to bin or install/bin
at build and install steps respectively.
7 years ago