Commit Graph

5774 Commits

Author SHA1 Message Date
D4N
ae0bfa44df
Merge pull request #180 from Exiv2/disable-printStructure
Disable printStructure()
2018-09-13 16:30:18 +02:00
Dan Čermák
19bb57ff25 Add reproducer for #262 to the test suite 2018-09-13 11:18:29 +02:00
Luis Díaz Más
2b74ad4feb Default initialyze DataBuf::pData_ so that valgrind does not complain 2018-09-13 11:18:29 +02:00
Dan Čermák
67ec90bdab Fix switch value in BigTiffImage::readData
This function extracts a 2, 4 or 8 byte integer from the image and
swaps it according to the current setting. However, it was implicitly
assuming, that it reads the same amount from the image is is
requested.
If that is not the case, e.g. if 8 bytes are requested but
only 4 are read
=> result is created via byteSwap8() which reads 8 bytes
   !but 4 of those are uninitialized!
Using the actually read size fixes this problem.
2018-09-13 11:18:29 +02:00
Dan Čermák
ecf955812d Replace reachable assertions with enforce in BigTiffImage::readData 2018-09-13 11:18:29 +02:00
Dan Čermák
b3199a0720 Fix division by zero in BigTiffImage::printIFD
This fixes #262
2018-09-13 11:18:29 +02:00
Dan Čermák
03799c75e1 [testsuite] Add support for binary output to check_no_ASAN_UBSAN_errors 2018-09-13 11:18:29 +02:00
Dan Čermák
4090ca475f [testsuite] disable bugfixes-test.sh 2018-09-13 11:18:29 +02:00
Dan Čermák
75415693d8 [testsuite] Update testsuite after printStructure deletion 2018-09-13 11:18:29 +02:00
Robin Mills
afb98cbc6e Allocate correct amount of memory for the ICC profile 2018-09-13 11:18:29 +02:00
Robin Mills
8ff26931e3 Do not use Image::printStructure() when reading images as this causes security issues. 2018-09-13 11:18:29 +02:00
Robin Mills
90305cee1e Fix in exiv2-test.sh for Cygwin 2018-09-13 10:58:08 +02:00
Robin Mills
b6a8d39613 Ensure MSYS is detected in functions.source 2018-09-12 20:24:54 +02:00
Luis Díaz Más
f06b69fa56 CPack: ignore files for generating the sources tarball 2018-09-12 19:22:31 +02:00
Luis Díaz Más
92b5c37695 CPack: Intructions about how to use cpack 2018-09-12 19:22:31 +02:00
Luis Díaz Más
8a3f2606cf README-CMAKE transformed in Markdown file + Update info 2018-09-12 19:22:31 +02:00
Luis Díaz Más
e75731f8c2 README.md - use markdown headers 2018-09-12 19:22:31 +02:00
Luis Díaz Más
07f63003b7 COMMERCIAL changes 2018-09-12 19:22:31 +02:00
Luis Díaz Más
84e3e8a73a Copyright changes 2018-09-12 19:22:31 +02:00
Luis Díaz Más
d5001f8929 Modify exiv2-test.out to adapt it to the changes 2018-09-12 19:22:31 +02:00
Luis Díaz Más
1bdbb86b0c Fix warning about implicit conversion to bool 2018-09-12 19:22:31 +02:00
Luis Díaz Más
dba48ac3d9 Fix warning on VS2008 2018-09-12 19:22:31 +02:00
Luis Díaz Más
085d8a309a Remove COMMERCIAL Cmake variable 2018-09-12 19:22:31 +02:00
Luis Díaz Más
2afba9b127 Remove useless cmake information message 2018-09-12 19:22:31 +02:00
Luis Díaz Más
5324ac8c0e Move CMake variables to the file where they are used 2018-09-12 19:22:31 +02:00
Luis Díaz Más
603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
Luis Díaz Más
48e0b1d0c1 Remove obsolete lsm file 2018-09-12 19:22:31 +02:00
Luis Díaz Más
19d9ae844b Remove hardcoded CURL_STATICLIB definition in config.h 2018-09-12 19:22:31 +02:00
Luis Díaz Más
a6d82633c3 Enable WARNINGS_AS_ERRORS in CI jobs.
- Move the settings to other cmake file. This will not be used for XMP code
- Disable WARNINGS_AS_ERRORS for VS2008 and VS2010
2018-09-12 19:22:31 +02:00
Luis Díaz Más
c4cc019dff Hide -Wunused-variable issues by using the UNUSED() macro 2018-09-12 19:22:31 +02:00
Luis Díaz Más
94375034e6 Fix -Wsign-compare issues 2018-09-12 19:22:31 +02:00
Luis Díaz Más
320e186f44 Fix -Wmaybe-uninitialized warnings 2018-09-12 19:22:31 +02:00
Luis Díaz Más
18ded9ccf3 Use static version of libcurl.
Note that this will simplify the packaging/deployment
2018-09-12 19:22:31 +02:00
Luis Díaz Más
f47b0546ac Make clear separation between linker and compiler flags 2018-09-12 19:22:31 +02:00
Luis Díaz Más
e3a75ede85 Disable verbosity in make call 2018-09-12 19:22:31 +02:00
Luis Díaz Más
0bfa0168df Cleanup some of the PACKAGE_XXX variables and rely in the ones given by the project() command 2018-09-12 19:22:31 +02:00
Luis Díaz Más
14ab688b7f Provide more CPack variables 2018-09-12 19:22:31 +02:00
Luis Díaz Más
b2b04fe2d6 Use project() command to provide project version
- Note that we cannot find libiconv without saying that Exiv2 is also a C project
2018-09-12 19:22:31 +02:00
Luis Díaz Más
68f7c5e047 Use Cpack for generating the tarballs (TODO: document) 2018-09-12 19:22:31 +02:00
Luis Díaz Más
980f2e9462 Use isnan(f) as an alternative to isinf() on __APPLE__ 2018-09-12 08:11:54 +02:00
Luis Díaz Más
7d32da890b Add remaining pocs for the issue 428 and adapt the regression test 2018-09-11 09:49:59 +02:00
Robin Mills
6d1c318fc6 Fixes in PngChunk::readRawProfile 2018-09-11 09:49:59 +02:00
Luis Díaz Más
f5b40f3e82 Fix more issues in PngChunk::readRawProfile 2018-09-11 09:49:59 +02:00
Luis Díaz Más
847da051c0 Fix bug in PngChunk::readRawProfile
- Now it takes into account text.size_ when searching for a newline
char.
2018-09-11 09:49:59 +02:00
Luis Díaz Más
a6a1c31140 Add integration test to reproduce the issue 2018-09-11 09:49:59 +02:00
Luis Díaz Más
dce05ac488 Remove occurrences of EXIV2_BUILDDIR and rely in EXIV2_BINDIR 2018-09-11 06:54:44 +02:00
Luis Díaz Más
3d558be1aa Fix architecture setting in conan 2018-09-10 10:31:00 +02:00
Luis Díaz Más
7f111be2d0 Do not run unit tests with VS2008 and VS2010. Too much templating magic there ... 2018-09-10 10:31:00 +02:00
Luis Díaz Más
6b77e9f6c8 Do not use std::vector::data() which is not part of c++98 2018-09-10 10:31:00 +02:00
Luis Díaz Más
1f244b84e0 Use architecture x86 for VS2008 and VS2010 (In CMake generators) 2018-09-10 10:31:00 +02:00