Commit Graph

7725 Commits

Author SHA1 Message Date
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
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
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
Kevin Backhouse
47de70bbd7
Merge pull request #1836 from Exiv2/mergify/bp/main/pr-1834
Replace assertion with an error message (backport #1834)
2021-08-03 22:22:45 +01:00
Kevin Backhouse
e34e150f22 Replace assertion with an error message.
(cherry picked from commit 4ec1768415ba015041a9bb28ab17c1ccf6a8c63e)
2021-08-03 21:08:53 +00:00
Kevin Backhouse
d3e311fa62
Merge pull request #1832 from Exiv2/mergify/bp/main/pr-1828
Check value is in range before casting from double to uint32_t (backport #1828)
2021-08-03 16:48:12 +01:00
Kevin Backhouse
ed1db4ace2
Use std::round for rounding to nearest. 2021-08-03 14:44:09 +01:00
Kevin Backhouse
8d5e70379e Update src/tags_int.cpp
Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com>
(cherry picked from commit ad2e7221b498258bd04188b66f6da5cefd101e73)
2021-08-03 13:30:56 +00:00
Kevin Backhouse
52d70c8924 Check value is in range before casting from double to uint32_t, to avoid undefined behavior.
(cherry picked from commit 1455cc88466a14d8ea49935005e9de097984f012)
2021-08-03 13:30:55 +00:00
Kevin Backhouse
65d9f62efe Regression test for https://github.com/Exiv2/exiv2/issues/1827
(cherry picked from commit db527f446f33a7717205a6afba60f669d17ecf7f)
2021-08-03 13:30:53 +00:00
Kevin Backhouse
0e7d80fc84
Merge pull request #1826 from Exiv2/mergify/bp/main/pr-1820
Check that the string isn't empty (backport #1820)
2021-08-02 14:51:03 +01:00
Kevin Backhouse
db25089c6f
Merge pull request #1823 from Exiv2/mergify/bp/main/pr-1818
Fix memory leak in pngimage.cpp (backport #1818)
2021-08-02 14:50:37 +01:00
Kevin Backhouse
34aa899513
Merge pull request #1825 from Exiv2/mergify/bp/main/pr-1814
jp2image.cpp: check size before allocation to avoid out-of-memory errors (backport #1814)
2021-08-02 14:49:53 +01:00
Kevin Backhouse
644aaaac92
Check that the string isn't empty 2021-08-01 23:31:56 +01:00
Kevin Backhouse
15d99996bd
Regression test for https://github.com/Exiv2/exiv2/issues/1819 2021-08-01 23:31:16 +01:00
Kevin Backhouse
ffde235336
Add comment to explain the bounds-check. 2021-08-01 23:27:03 +01:00
Kevin Backhouse
67e2ef5ccd
Check size before allocation to avoid out-of-memory errors. 2021-08-01 23:27:02 +01:00
Kevin Backhouse
3278270cbe
Regression test for https://github.com/Exiv2/exiv2/issues/1812 2021-08-01 23:20:16 +01:00
Kevin Backhouse
0eacac6b6b
Merge pull request #1822 from Exiv2/mergify/bp/main/pr-1816
Add bounds-check to prevent out-of-bounds read in memcmp (backport #1816)
2021-08-01 22:47:12 +01:00
Kevin Backhouse
c641116b25
Add static_cast to fix build error on Windows. 2021-08-01 10:03:51 +01:00
Kevin Backhouse
b8ed3867c0
Use DataBuf, rather than new[], for automatic delete when an exception is throw. 2021-08-01 10:03:46 +01:00
Kevin Backhouse
38a7733b0b
Regression test for https://github.com/Exiv2/exiv2/issues/1817 2021-08-01 10:00:24 +01:00
Kevin Backhouse
dd4659ce2d Add bounds-check to prevent out-of-bounds read in memcmp.
(cherry picked from commit a6253799d4e3727e32e6412798dceca4200efdda)
2021-08-01 08:40:51 +00:00