Luis Díaz Más
7f111be2d0
Do not run unit tests with VS2008 and VS2010. Too much templating magic there ...
7 years ago
Luis Díaz Más
6b77e9f6c8
Do not use std::vector::data() which is not part of c++98
7 years ago
Luis Díaz Más
1f244b84e0
Use architecture x86 for VS2008 and VS2010 (In CMake generators)
7 years ago
Luis Díaz Más
20f7d24bc4
Use architecture x86 for VS2008 and VS2010
7 years ago
Luis Díaz Más
552f1e25c3
Fix vcvarsall paths for 2008 and 2010
7 years ago
Luis Díaz Más
333ae8a8b1
Try to compile the project also with VS2008 and VS2010
7 years ago
Luis Díaz Más
24be5a514e
[Appveyor] Build exiv2 with Visual Studio 2012 and 2013
...
- Integration tests had to be disabled with 2012 and 2013. There were
few (4) tests failing for these cases.
- Only bring libiconv with conan when a windows subsystem is detected.
- libiconv can be enabled now with a conan option.
- Use infinity instead of INFINITY
- Use conan_basic_setup(). Fixes a problem with gtest is VS2012
- call vcvarsall.bat for each compiler version so that nmake can be
found.
7 years ago
Luis Díaz Más
2ae0cffe18
isinf for Visual Studio versions previous to 2013
7 years ago
Luis Díaz Más
4161099b91
Fix warnings reported by MSVC
7 years ago
Luis Díaz Más
da24df0ba0
snprintf versions for VS versions previous to 2015
7 years ago
Luis Diaz Mas
67e448669e
Use -Wno-format-overflow when compiling value.cpp to skip false positive warning
7 years ago
Luis Diaz Mas
0cf7d4fad8
Add unit tests for the TimeValue class
7 years ago
Robin Mills
59e84ed1ae
Merge pull request #431 from piponazo/removeCrwSamples
...
Remove crw samples + Fix build with MinGW
7 years ago
Luis Díaz Más
2698490584
Delete CRW samples that were not compatible with MinGW
7 years ago
Luis Díaz Más
597b17fff5
Simplify timegm.h and make it usable with MINGW
7 years ago
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