Commit Graph

144 Commits

Author SHA1 Message Date
Miloš Komarčević
c04dcc8341 Remove exiv2-xmp from CMake exported config 2023-05-16 20:32:21 +03:00
Steve Robbins
527dc9f666 xmpsdk: Unconditionally use <stdint.h>
to define known bit-width types.
2023-01-31 00:10:29 -08:00
Rosen Penev
0a5c1299e4 fix WIN32 macro
MinGW implements the _ version.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 06:19:10 -08:00
Rosen Penev
4a735ef046 xmpsdk: Fix dangling pointer warning
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 06:07:17 -08:00
Luis Díaz Más
83a4fd5081 cmake: exiv2-xmp is now an OBJECT library 2022-04-01 18:14:19 +02:00
Kevin Backhouse
4bc4757404
Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39555
Remove bogus code.
2021-10-15 21:55:22 +01:00
Kevin Backhouse
bb9ff53ebe
Throw an exception on integer overflow. 2021-09-13 21:43:59 +01:00
Kevin Backhouse
395389aa15
Add more checks to prevent integer overflow. 2021-09-12 22:48:24 +01:00
Kevin Backhouse
4d55cb6692
Comment out bogus code.
Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38189
2021-09-12 14:48:47 +01:00
Luis Díaz Más
6c2141959a conan - change generator to be able to use latest expat version 2021-05-17 07:31:45 +02:00
Kevin Backhouse
ee3b8d1fc2 Fix quadratic complexity performance bug.
(cherry picked from commit c261fbaa2567687eec6a595d3016212fd6ae648d)
2021-05-16 19:45:34 +02:00
Luis Díaz Más
6c0059b5a0 cmake: Treat xmpsdk headers as system ones
This is done so that when we use EXIV2_TEAM_EXTRA_WARNINGS we do not get
warnings about XMPSDK (we do not want to deal with those)
2021-04-18 18:49:58 +02:00
Luis Díaz Más
50d5887e65 localtime_r support on MinGW 2021-04-18 09:44:51 +02:00
Rosen Penev
c15d3b1323 xmpsdk: don't use register
register is gone with C++17.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-17 08:32:13 +02:00
Luis Díaz Más
8dc42199e8 Hide exiv2-xmp dependency in CMake config file: 2020-10-17 17:05:12 +02:00
Luis Díaz Más
f39b23806b Assume existence of stdint.h 2020-09-16 21:53:49 +02:00
Robin Mills
7bf40a2408 fix_1211_c++11_0.27. I'll explain this in the PR. 2020-05-28 14:16:08 +01:00
clanmills
0eabfc4053 Adding CPP changes 2020-03-29 15:58:03 +01:00
Kevin Backhouse
fe538e9438 Check bounds in XMP SDK (#852)
* Check bounds of month and day.

* Add some more bounds checks.

* Fix test failure in clang.
2019-05-16 07:40:47 +02:00
clanmills
c261db2b5f sync changes to ExpatAdapter from master to 0.27 (removes compiler warnings) 2019-01-07 11:47:03 +00:00
Andreas Schneider
189da93480 xmpsdk: Build with -DBanAllEntityUsage=1
Prevent a denial-service-attack related to XML entity expansion
("billion laughs attack").
See https://bugzilla.redhat.com/show_bug.cgi?id=888769

Search for BanAllEntityUsage in xmpsdk/src/ExpatAdapter.cpp

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit e44d1dbe769f3b60a3d671be310f4af4f9490e6b)
2019-01-05 13:08:49 +01:00
Andreas Schneider
6062b1b803 cmake: Rename xmp to exiv2-xmp to avoid name conflicts
There is already a libxmp file by the xmp project on https://xmp.sf.net.
To avoid issues prefix with exiv2.

Fixes #624

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 89509d7a3915ba474cbc3f8c85ab9bec4954ceda)
2019-01-05 13:08:49 +01:00
Robin Mills
3f21ff2fac Fix: https://github.com/Exiv2/exiv2/issues/570 2018-11-30 14:18:17 +01:00
Luis Díaz Más
bc940231e7 Define XML_STATIC only for MSVC 2018-11-26 15:23:30 +01:00
Luis Díaz Más
4752b66bed CMake: Remove XML_STATIC definition that is not needed with expat 2.2.6 2018-11-26 15:23:30 +01:00
Luis Díaz Más
f92030d650 CMake: remove XMPSRC variable. 2018-11-26 15:23:30 +01:00
Luis Diaz Mas
9733863030 Remove experimental approach to handle new XMPSDK versions
Note that the way to bring a newer version of XMP is by using conan.
2018-10-30 15:26:23 +01:00
Luis Diaz Mas
8b68afd4be Remove xmp Makefile. Now it is always handled by CMake 2018-10-30 15:26:23 +01:00
Luis Diaz Mas
4afb61411c Remove xmp visibility flags. Already done in cmake/mainSetup.cmake 2018-10-30 15:26:23 +01:00
Borchers, Henry Samuel
11e66c6c9e BUILD_INTERFACE for include directories use PROJECT_SOURCE_DIR to allow for being built as a CMake subproject 2018-10-07 19:20:37 +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
d55b2b1b65 Remove HAVE_STDLIB_H check and replace stdlib.h by cstdlib 2018-05-04 11:20:43 +02:00
tbeu
5df8b01b77 Remove obsolete svn revision 2017-11-19 11:17:11 +01:00
Luis Diaz Mas
2784b1f7f7 Remove EXIV2_ENABLE_LIBXMP variable, always build static XMP library, remove cmake OBJECT library 2017-10-03 19:54:57 +02:00
Luis Díaz Más
686edde5ef Provide exiv2Config file automatically generated by CMake 2017-10-01 18:21:52 +02:00
Robin Mills
c71322bff7 Correction for buildbreaker in 2f010487 2017-09-29 11:04:17 +01:00
Luis Díaz Más
8ad49f6d73 Robin changes in sync with master changes 2017-09-28 19:42:57 +02:00
clanmills
678e2b8517 Explicitly list files to be processed CMake generated builds [remove file(GLOB...)] 2017-09-22 10:05:11 +01:00
clanmills
305424bbad Reverting changes to MD5.h 2017-09-15 09:01:45 +01:00
clanmills
10e6ebdef3 AdobeXMPsdk Simplification for detection of stdint_h 2017-09-14 18:13:46 +01:00
clanmills
35c244e911 AdobeXMPsdk. Revert most of xmpsdk/CMakeLists.txt to enable debugging with Xcode. 2017-09-14 17:42:28 +01:00
Robin Mills
60d436c969 Many changes to CMakeLists.txt and cmakeBuild.cmd to support unicode, static linking, passing shared library build flags. 2017-09-05 21:36:56 +01:00
Luis Díaz Más
c1c6c42834 Do not use certain compiler flags on windows 2017-09-03 18:41:21 +02:00
Luis Díaz Más
d206604743 Fix some compilation issues with the xmp 2017-09-03 16:35:41 +02:00
Luis Díaz Más
557d056add Fix linking issues with EXPAT and the xmp static library (on windows) 2017-09-03 16:35:41 +02:00
Robin Mills
68effb1772 xmpsdk/buildXMPsdk.cmd work-in-progress 2017-08-28 20:42:48 +01:00
Robin Mills
f281556e85 xmpsdk/buildXMPsdk.cmd work-in-progress 2017-08-27 12:50:30 +01:00
Robin Mills
23aff3a11a buildXMPsdk.cmd testing/work-in-progress. 2017-08-25 11:49:18 +01:00
clanmills
b715da1fcd buildXMPsdk.cmd code complete. 2017-08-24 17:39:48 +01:00
Robin Mills
9da376a125 xmpsdk/buildXMPsdk.cmd - first working version 2017-08-24 13:36:35 +01:00