Commit Graph

7713 Commits

Author SHA1 Message Date
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
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
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
Kevin Backhouse
ed82e63ea0 Regression test for https://github.com/Exiv2/exiv2/issues/1815
(cherry picked from commit 6e83bddd3a41bd4d23127138e464d8a90c092744)
2021-08-01 08:40:50 +00:00
Christoph Hasse
c65941c4cd check integrity of codecov executable
Co-authored-by: Kevin Backhouse <kevinbackhouse@github.com>
2021-07-30 16:09:56 +02:00
Christoph Hasse
a18aa137bc check integrity of codecov executable
Co-authored-by: Kevin Backhouse <kevinbackhouse@github.com>
2021-07-30 16:09:56 +02:00
Christoph Hasse
f3d2ed3f86 update codecov coverage github action and remove use of deprecated bash uploader 2021-07-30 16:09:56 +02:00
Christoph Hasse
c1586a72b3 dont do codecov for samples and tests 2021-07-30 16:09:56 +02:00
postscript-dev
2b13148906 Update the date in the man page 2021-07-30 15:59:52 +02:00
postscript-dev
caa0aa4a1d Add SonySInfo1 testing
SonySInfo1 is currently supported by all Sony cameras so does not need
to test for unsupported models.
2021-07-30 15:59:52 +02:00
postscript-dev
0144209ed0 Add SonySInfo1 makernote tags (tag 3000)
Add all tags, except the face detection sub-groups and related
bookkeeping values.

Source: Exiftool (https://exiftool.org/TagNames/Sony.html)
2021-07-30 15:59:52 +02:00
Christoph Hasse
08975e3dfc refactor: small cleanup of test infra to avoid duplicate runs 2021-07-30 14:25:50 +02:00
Christoph Hasse
4323965c0a Update codecov badge in readme to show results of main branch 2021-07-29 18:09:33 +02:00
Kevin Backhouse
2488fc82e9
Merge pull request #1804 from kevinbackhouse/FuzzMore
Add fuzzing dictionary and test all printStructure() options
2021-07-28 22:40:24 +01:00
Christoph Hasse
0f0885b0d6 test: add new test for lens 2021-07-28 23:08:14 +02:00