6078 Commits (42d79e87aa57d84a94ab76b62047f6f8718f294c)
 

Author SHA1 Message Date
Robin Mills df4113b765 changes to MemIo::reserve() for #200 (#213)
* changes to MemIo::reserve() for #200

* Changes following review by Dan (thanks, Dan).
8 years ago
Michał Walenciak d219e61586 be more error prone 8 years ago
Michał Walenciak 24348e85ca checks for valid reads 8 years ago
Michał Walenciak 421c6d6723 improvements for issue #208 8 years ago
D4N b7d76da9d5
Merge pull request #203 from Exiv2/fix_201
Fix #201
8 years ago
Michał Walenciak dba9fba725 test for issue #208 8 years ago
Michał Walenciak 1647908e00 fix for crash in bigtiff (issue #208) 8 years ago
Dan Čermák 9900f523fe Added reproducer for #201 to the test suite 8 years ago
Robin Mills 7d42da94d0 Removed wrong ExifData::const_iterator that shadowed the correct one 8 years ago
D4N 4be065595e
Merge pull request #155 from D4N/python_test_suite_wip
[WIP][RFC] Python test suite
8 years ago
Dan Čermák 27d7a5d968 Added new test suite to travis & Appveyor 8 years ago
Dan Čermák 5267123186 Ported tiff-test.sh 8 years ago
Dan Čermák 085c9715fc Added some example test cases to the new test suite 8 years ago
Dan Čermák 2e745b0b26 Added replacement for the current regression test suite 8 years ago
Luis Díaz Más 00f32316b2 Add missing header 8 years ago
Luis Díaz Más 22527f0927 Add reproducer for issue #188 8 years ago
Luis Díaz Más 14ff034fb4 Catch std::overflow_error exception in Print::run 8 years ago
Luis Diaz Mas d09c4bb7cd Fix arithmetic operation overflow 8 years ago
Luis Diaz Mas d1b4df5533 Show the Appveyor badge corresponding to the master branch 8 years ago
D4N 2c1d5288c2
Merge pull request #198 from Exiv2/fix_errno_failure_Fedora
Reset errno to 0 before unit test probing strerror(errno)
8 years ago
Dan Čermák 1de633ad37 Reset errno to 0 before unit test probing strerror(errno)
errno can be set to a non-zero value from a previously failed system
call, it is not reset by successful ones
=> have to do that manually or the unit test fails because it detects
   an "outdated" error message
8 years ago
D4N eec3f9a0c5
Merge pull request #194 from Exiv2/integer_overflow_checks
Add Integer addition overflow checks
8 years ago
Luis Díaz Más a1023c39ab Add safe_op.hpp to LIBEXIV2_PRIVATE_HDR (to be shown in IDEs) 8 years ago
Dan Čermák 7c00e9128d Fix compilation error with gcc < 5
- overflow builtins were added with gcc 5.0
8 years ago
Dan Čermák 3b3283e37d Added unit tests for new overflow checking addition functions 8 years ago
Dan Čermák ca7c699aa1 Added overflow safe addition function 8 years ago
Luis Díaz Más 39377b8c02 Fix strError tests on Mac 8 years ago
Luis Díaz Más 9b463708a4 Test runner return the gtest return value 8 years ago
Luis Díaz Más 3cf3635ae2 [travis] Fix unit tests on Mac.
- Use libc++ instead of libstdc++ in the conan profile
- Add CMAKE_OPTIONS for Mac
8 years ago
Luis Díaz Más 6d41884245 [AppVeyor] Re-enable unit tests and compile project in release mode
The problem was that we were not indicating the CMAKE_BUILD_TYPE when
calling CMake. It is important to set that CMake variable when using
the Ninja generator.
8 years ago
Luis Díaz Más a1213c1d90 Use the DEBUG compiler definition in Debug mode 8 years ago
Luis Díaz Más 74a5c5f770 [travis] Fix mac osx jobs
- Specify concrete ubuntu and mac versions
- Use latest conan version
- Fix the profiles for linux and mac
- Use new version of expat (avilable in conan-center)
- Install urllib3 as suggested in python guidelines
- Use virtualenv with python3
8 years ago
Luis Díaz Más 3ccc64d713 [travis] Re-enable osx 8 years ago
Robin Mills 8f5b795eaa Fixes to autotools build to respect mn_int.cpp files (#186)
* Fixes to autotools build to respect mn_int.cpp files

* Changes following Luis' code review.
8 years ago
D4N 6b29822670
Merge pull request #169 from D4N/reproducer_redmine_1305
Added reproducer for redmine issue 1305
8 years ago
Dan Čermák 42090c1625 Updated bugfixes-test.out 8 years ago
Dan Čermák 305d22136c Added reproducer for issue 1305 on exiv2 redmine
http://dev.exiv2.org/issues/1305
8 years ago
Luis Díaz Más f36bea3801 exiv2::getEnv throws std::out_of_range on unexpected EnVar
This change define explicitly the behavior that exiv2::getEnv should have
on response to unexpected inputs.

There are some other minor changes:

- Use _putenv_s for the unit tests on Windows
- Add todo comment
- Remove deprecated note about freeing memory
8 years ago
Luis Díaz Más 8dc3c1f0a0 Replace malloc/free by new/delete. Use const char* for input arg 8 years ago
Luis Díaz Más bfe057ca20 Auto-formatting done by the IDE while touching code in the previous commits 8 years ago
Luis Díaz Más 8b049922d7 Change exiv2::urlencode signature to return std::string
The goal of this change is to remove the responsibility from the client code to
free the memory of the returned string.
8 years ago
Luis Díaz Más fd5f131f4e Add characterisation test for exiv2::urlencode 8 years ago
Luis Díaz Más 171c7970f9 Add characterization tests for exiv2::getEnv 8 years ago
Luis Diaz Mas 1657c7e53d Ignore build* folders and project file generated by QtCreator 8 years ago
Luis Diaz Mas ec09c98adb add few characterisation tests for exiv2::strError 8 years ago
Luis Díaz Más 3984a197b3 Use specific conan version 8 years ago
Luis Díaz Más 76668a03b1 Disable Mac builds on travis 8 years ago
Luis Díaz Más 19136d508a Changes proposed by tbeu (To be squased before merging) 8 years ago
Luis Díaz Más 977c5f7a63 Add CONTRIBUTING.md file with main guidelines for contributions 8 years ago
Luis Díaz Más cc7ff4122d Export all symbols when running unit tests. Add dummy test for private code.
I tried to use directly the private OBJECT library (exiv2lib_int) in the unit_tests targets, but the private objects have dependencies on the public symbols (circular dependency)
and therefore it is impossible to test the private code with that approach with the current design of the library.

Starting from CMake 3.3 we can use the variable CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to export all the symbols of a shared library:
https://blog.kitware.com/create-dlls-on-windows-without-declspec-using-new-cmake-export-all-feature/

Even having the opportunity to use this variable (that will be only used when EXIV2_BUILD_UNIT_TESTS is enabled) the previous commits are still valid.
It is interesting to clearly differentiate between the public and private code of the library. Enforcing this, make us think twice before putting code in the public
part of the library.
8 years ago