6213 Commits (2e14d96bcd55e94e47abdf25a141bfc162331a49)
 

Author SHA1 Message Date
Dan Čermák 1e23238fa4 Fix memory leak in Params::getopt() 7 years ago
clanmills 3c42fdddeb Fix include <exiv2/exiv2.hpp> to include exiv2/config.h (and consequential changes)
Fix cltest.cpp and version.cpp to report MSVC 2017 in which _MSC_VER == 1910
7 years ago
Robin Mills 6f5c339859 Fix getopt-test to build on MSVC (which does not have unistd/getopt()) 7 years ago
Robin Mills 74bc0e0535 Changes for cross-platform getopt 7 years ago
Hombre a226d6a650 Fixing typo in cmakefiles and removing REGEX dependencie for Cygwin 7 years ago
Hombre 28da26f174 Adding MINGW32 toolchain support 7 years ago
D4N 7812043b7d
Merge pull request #419 from D4N/testsuite_api
Testsuite improvements
7 years ago
Dan Čermák 7d9ed33bde Initialize DataBuf with 0s => fix valgrind error 7 years ago
Dan Čermák 0f43d0f49d [Travis CI] Add new matrix entry: run test suite under Valgrind 7 years ago
Dan Čermák ed28e15152 [testsuite] Add option to run all commands under valgrind 7 years ago
Dan Čermák c7a3a57aff [testsuite] Port redmine issue #1137 (requires stdin passing) 7 years ago
Dan Čermák 992877bb39 [testsuite] Implement the supplying of stdin to commands 7 years ago
Dan Čermák 872e158173 [testsuite] Port redmine issue 1043
This test used shell wildcards, which we work around by creating the
list of files to process manually.
7 years ago
Dan Čermák bf43cbbccc [testsuite] Set env var TZ in redmine issue 1054 & remove skip
The manual export TZ=UTC in run.sh is thereby no longer needed
7 years ago
Dan Čermák 9cfcfb98a2 [testsuite] Add feature to set environment variables 7 years ago
Dan Čermák 116f5fe5bd [testsuite] Port redmine issue 1074 using the binary output feature 7 years ago
Dan Čermák 4f8c150582 [testsuite] Added binary output checking to the test suite 7 years ago
Dan Čermák bf50b582cb [testsuite] Improve PEP8 compliance 7 years ago
Dan Čermák deb9c23df8 [testsuite] Add option to run tests from a single file only 7 years ago
Luis Diaz Mas 27aa3ddc67 Add new codecov yml file to filter the XMKSDK folder out 7 years ago
D4N 102a0f316c
Merge pull request #417 from Exiv2/safe_abs
Add overflow safe abs and enable UBSAN on travis
7 years ago
Dan Čermák 7d7bbec517 [Travis CI] Add gcc 8 to the build for UBSAN 7 years ago
Dan Čermák da7239cf74 [Travis CI] Enable sanitizers for gcc & OSX builds 7 years ago
Dan Čermák 10929cec7a [CMake] Add EXIV2_TEAM_USE_SANITIZERS option
Setting this option enables address sanitizer and undefined behavior
sanitizer, when available for the given compiler & platform.
It does not currently check whether the architecture is supported,
as CMake does not offer an easy way how to check it. Since we are
mostly developing for x86 & amd64 this is not a huge problem and it's
also a developer only setting.
7 years ago
Dan Čermák 9f1a5a1ebb [futils] Change signature of getEnv to take an int
While taking an EnVar as the parameter is more clear it has the
disadvantage, that passing anything outside of the range of the
enumeration is undefined behavior. The compiler could then optimize
the range check in getEnv away (perfectly legal due to UB), leading
to buffer overreads.
7 years ago
Dan Čermák e705f1ef5b Add unit test for floatToRationalCast 7 years ago
Dan Čermák 11df43be78 [types] Apply Safe::abs() in floatToRationalCast & gcd
Also check for infinity in floatToRationalCast as depending on the
compiler special values of floats are converted to either
LONGMAX/LONGMIN or +/-inf
7 years ago
Dan Čermák 2dacb19933 [safe_op] Add Safe::abs(), calculates absoulte value without UB
Add a drop-in replacement for std::abs which never produces
negative values and thereby never invokes undefined behavior.
7 years ago
Luis Diaz Mas 8b47a8efc1 Include timegh.h in file which needs it 7 years ago
Luis Diaz Mas a9c9451588 Remove localtime.c and any other trick to handle timegm 7 years ago
Luis Diaz Mas eb306fdbae Substitute malloc/free with new/delete 7 years ago
Luis Diaz Mas 08cbb0c206 Use header guards instead of pragma once 7 years ago
Luis Diaz Mas 669ab49c43 New tests for Uri class 7 years ago
Luis Diaz Mas ca290d870f New tests for base64 encode & decode 7 years ago
Luis Diaz Mas 5d76036af5 Add more tests for decoding and encoding URL functions 7 years ago
Luis Diaz Mas eefee8125b to_hex and from_hex removed from API 7 years ago
Luis Diaz Mas 22d9ab82a7 Format futils.h for better readability (also pass clang-format to it) 7 years ago
Luis Diaz Mas c82d875707 Use pragma once instead of guards 7 years ago
Luis Diaz Mas a3c200a23e Remove useless header inclusions 7 years ago
Luis Diaz Mas 41499b8ecd Use snprintf instead of sprintf in TimeValue::copy
- Replaced assert by enforce
7 years ago
Luis Díaz Más 1128d8926a Appveyor: Run CI with VS 2015 and 2017.
In order to achieve this objective the following actions were taken:
- Do not use the Ninja Generator, since it is more difficult to choose
  VS toolset to be used.
- Use arch x64 for conan and the CMake Generators (by default)
- Do not create profiles dir manually
- Detect new default conan profile automatically
- Remove clcache from appveyor since it does not integrate well with VS generators
- VS2013 removed from the matrix since some integration tests fail there.
7 years ago
Luis Diaz Mas 0bc6fbcea7 Add stdexcept header in unit test files 7 years ago
Luis Diaz Mas d96b619515 Add braces for the main functions in the new source files at samples 7 years ago
Luis Diaz Mas 7d8edbe781 Remove more dead code 7 years ago
Luis Diaz Mas 00502eabdd Move mrwthumb to samples 7 years ago
Luis Diaz Mas e9a6597a48 Move xmpdump to samples 7 years ago
Luis Diaz Mas ac51fda7b5 Move crwparse to samples 7 years ago
Luis Diaz Mas 32b618b1c7 Move crwedit from exiv2lib to samples 7 years ago
Luis Diaz Mas f9b2784055 Remove utiltest.cpp that is not compiled 7 years ago
Luis Diaz Mas ad004498a2 Cleanup 'comparison between signed & unsigned integer' warning 7 years ago