Commit Graph

7746 Commits

Author SHA1 Message Date
Kevin Backhouse
61a14c45d1
Fix build failure. 2021-08-29 17:13:15 +01:00
Kevin Backhouse
e41f0c2cce
Fix build failure on Windows. 2021-08-29 15:49:12 +01:00
Kevin Backhouse
c9d0cf3643
Make fields of DataBuf private. 2021-08-29 15:43:10 +01:00
Kevin Backhouse
cb16324bcf
Merge pull request #1882 from kevinbackhouse/FixIssue1881
Throw an error if the size of the preview is greater than 1MB
2021-08-27 18:17:14 +01:00
Kevin Backhouse
ccfdcf84ea
Merge pull request #1824 from 1div0/JPEG XL
Corrected JPEG XL file type
2021-08-27 17:47:35 +01:00
Kevin Backhouse
67746dee73
Merge pull request #1874 from neheb/emp
remove most usages of std::make_pair
2021-08-27 17:47:08 +01:00
Kevin Backhouse
0a02b3f81a
Merge pull request #1883 from kevinbackhouse/XMLValidatorBuild
Only build XMLValidator when XMP is enabled.
2021-08-27 17:45:30 +01:00
Kevin Backhouse
ddd1c47f8b
Add second test file for better code coverage. 2021-08-27 17:42:20 +01:00
Kevin Backhouse
ce02361a64
Only build XMLValidator when XMP is enabled. 2021-08-27 17:03:35 +01:00
Kevin Backhouse
60144df557
Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37492
Throw an error if the size of the preview is greater than 1MB.
2021-08-27 16:56:45 +01:00
Kevin Backhouse
218ad98f22
Regression test for https://github.com/Exiv2/exiv2/issues/1881 2021-08-27 16:56:20 +01:00
Kevin Backhouse
f9248f9fde
Merge pull request #1878 from kevinbackhouse/XMLValidator
Add some XML validation to avoid xmpsdk bugs
2021-08-27 09:18:14 +01:00
Kevin Backhouse
5703dbc6a4
Add test to improve code coverage. 2021-08-23 09:28:54 +01:00
Kevin Backhouse
b35cc5ffa6
Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37363
Do some basic XML validation before running the xmpsdk library to avoid bugs in xmpsdk.
2021-08-21 12:42:24 +01:00
Kevin Backhouse
c9f253f0e5
Merge pull request #1876 from kevinbackhouse/OSS-Fuzz-integration
Add OSS-Fuzz status badge and CIFuzz integration
2021-08-18 12:53:48 +01:00
Rosen Penev
e7eddfc2f5 use more emplace_back
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-08-17 19:19:56 -07:00
Rosen Penev
f3fcffd6e6 remove most usages of std::make_pair
Better alternatives exist with C++11.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-08-17 19:11:28 -07:00
Kevin Backhouse
5bfa568b63
Add OSS-Fuzz status badge and CIFuzz integration. 2021-08-17 17:47:17 +01:00
Kevin Backhouse
079f130196
Merge pull request #1875 from kevinbackhouse/OSS-Fuzz
Add special build mode for OSS-Fuzz
2021-08-17 13:21:00 +01:00
Kevin Backhouse
cee9015ff8
Add special build mode for OSS-Fuzz. 2021-08-15 13:34:41 +01:00
Miloš Komarčević
af0954ca0c Update test for image/jxl 2021-08-12 16:19:06 +02:00
Kevin Backhouse
f8bfad1551
Merge pull request #1869 from kevinbackhouse/Decouple-Fuzzer-Flags
Decouple EXIV2_BUILD_FUZZ_TESTS from EXIV2_TEAM_USE_SANITIZERS.
2021-08-11 19:46:00 +01:00
Kevin Backhouse
64fe77673f
Decouple EXIV2_BUILD_FUZZ_TESTS from EXIV2_TEAM_USE_SANITIZERS. 2021-08-11 15:11:01 +01:00
Kevin Backhouse
ced25a5d56
Merge pull request #1565 from Exiv2/fix_1516_include_path
fix_1516_include_path
2021-08-10 14:55:23 +01:00
Christoph Hasse
dcb65d91ec workaround for softprops/action-gh-release#139 2021-08-09 12:38:17 +02:00
Kevin Backhouse
ee3016c240
Merge pull request #1813 from kevinbackhouse/FuzzWithASAN
Add sanitizer flags when fuzzing
2021-08-08 11:58:52 +01:00
Kevin Backhouse
89abcad124
Add LSAN suppressions. 2021-08-08 11:38:31 +01:00
Kevin Backhouse
b6f9a3747f
Add sanitizer flags when fuzzing. 2021-08-08 11:18:56 +01:00
Kevin Backhouse
4bcccaab67
Merge pull request #1853 from Exiv2/mergify/bp/main/pr-1850
Add test for issue 1821 (backport #1850)
2021-08-08 10:38:33 +01:00
Kevin Backhouse
3c65c842db
Merge pull request #1857 from kevinbackhouse/FixBuildAppleM1
Fix compiler warning on Apple/M1/Clang
2021-08-07 18:56:59 +01:00
Kevin Backhouse
e667346582
Fix for https://github.com/Exiv2/exiv2/issues/1856 2021-08-07 16:59:19 +01:00
Robin Mills
c82c4d0420
fix_1516_include_path 2021-08-07 13:54:44 +01:00
Kevin Backhouse
a1b65a7928
Merge pull request #1849 from Exiv2/mergify/bp/main/pr-1848
Replace assertion with an error message (backport #1848)
2021-08-06 13:47:11 +01:00
Kevin Backhouse
e5bcc640bc Test for https://github.com/Exiv2/exiv2/issues/1821
(cherry picked from commit d54e3e5ea54bf0420378ed86f846fede622532da)
2021-08-06 12:46:23 +00:00
Kevin Backhouse
0dc5cdd910
Merge pull request #1852 from Exiv2/mergify/bp/main/pr-1846
Replace assertion with error message in TiffDirectory::writeDirEntry() (backport #1846)
2021-08-06 13:46:14 +01:00
Kevin Backhouse
330483a859
Merge pull request #1843 from Exiv2/mergify/bp/main/pr-1840
Check that the float is within the range of an int before casting (backport #1840)
2021-08-06 13:45:25 +01:00
Kevin Backhouse
9fd8b40a4e Replace assertion with an error message.
(cherry picked from commit cb32b809c80163c2392543dfb830dffe44e47f91)
2021-08-06 12:13:38 +00:00
Kevin Backhouse
23dfda54be Regression test for https://github.com/Exiv2/exiv2/issues/1845
(cherry picked from commit f8c71359a6fd0fb23823454e931b9739013d293a)
2021-08-06 12:13:38 +00:00
mergify[bot]
66259b1c71
Check if embedded RAF image is really a TIFF (backport #1796) (#1851)
* Check if embedded RAF image is really a TIFF

(cherry picked from commit be12ae6f9e2f053bf101902865deadfe7c937f8d)

* Clarify comment on old vs new RAF

Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com>
(cherry picked from commit 30f39ac98c1671547aa0b4021081e374864f1f04)

* Check I/O read result on RAF inspection

Co-authored-by: Kevin Backhouse <kevinbackhouse@github.com>
(cherry picked from commit 09de8dc901a38555151bd87d89ada3bd931451ea)

* Add test

(cherry picked from commit 9c3db7f3c3cb48fe0669061e627174402f366816)

Co-authored-by: Miloš Komarčević <miloskomarcevic@aim.com>
Co-authored-by: Miloš Komarčević <4973094+kmilos@users.noreply.github.com>
2021-08-06 11:22:05 +02:00
Kevin Backhouse
9e160a453b
Replace assertion with an error message. 2021-08-05 22:31:41 +01:00
Peter Kovář
1d095cf751 Removed tag handled separately 2021-08-05 10:04:51 +02:00
Kevin Backhouse
cca3e0766d
Merge pull request #1844 from Exiv2/mergify/bp/main/pr-1842
Use DataBuf rather than raw malloc in WebPImage::decodeChunks (backport #1842)
2021-08-04 21:22:34 +01:00
Kevin Backhouse
5bc444ff00
Use DataBuf rather than raw malloc. 2021-08-04 20:55:20 +01:00
Kevin Backhouse
3ec4460c7e
Regression test for https://github.com/Exiv2/exiv2/issues/1841 2021-08-04 20:52:07 +01:00
Kevin Backhouse
7c2ab1d7de
Check that the float is within the range of an int before casting. 2021-08-04 15:21:31 +01:00
Kevin Backhouse
bda9471c1b
Regression test for https://github.com/Exiv2/exiv2/issues/1838 2021-08-04 15:14:43 +01:00
Kevin Backhouse
726510f3b0
Merge pull request #1837 from Exiv2/mergify/bp/main/pr-1831
Safer casting from double to long in value.hpp (backport #1831)
2021-08-03 23:20:13 +01:00
Christoph Hasse
0fab606e90 fix: incorrectly triggered enforce check during preview extraction in LoaderTiff::getData(), closes #1829 2021-08-04 00:12:26 +02:00
Kevin Backhouse
4674fae4ef Safer casting from double to long.
(cherry picked from commit 372e28c41044a9e8b65d7d7093e028e30a7c8c8a)
2021-08-03 21:39:12 +00:00
Kevin Backhouse
e7d43b94a3 Regression test for https://github.com/Exiv2/exiv2/issues/1830
(cherry picked from commit 8b844c2dceab3ffd9bf423ffc4672bda5ee7cc8d)
2021-08-03 21:39:11 +00:00