Commit Graph

7696 Commits

Author SHA1 Message Date
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
Christoph Hasse
e086c7cbd2 add Canon EF 100-400 2x, and make size of aperture lens matching delta dependent on teleconverter factor 2021-07-28 23:08:14 +02:00
Christoph Hasse
f4a85d9888 update man page to reflect what is done in code 2021-07-28 13:05:36 +02:00
Christoph Hasse
7d2f2d2526 make the ifdef in getExiv2ConfigPath a bit more minimal 2021-07-28 13:05:36 +02:00
Christoph Hasse
95c2c26747 Fixes for Max and Win 2021-07-28 13:05:36 +02:00
Christoph Hasse
aa86646f27 adapt man pages to reflect new config file path behaviour 2021-07-28 13:05:36 +02:00
Christoph Hasse
9d7b14d849 adapt test to make use of config file search in cwd 2021-07-28 13:05:36 +02:00
Christoph Hasse
6d5407e851 first search cwd for config file then check home dir 2021-07-28 13:05:36 +02:00
Christoph Hasse
a93788a449 add test of config file based lens name determination 2021-07-28 13:05:36 +02:00
Christoph Hasse
6fd6c8b3dd fix: SIGSEGV on parsing of config file. (introduced in main by clang-tidy fix) 2021-07-28 13:05:36 +02:00
Kevin Backhouse
22b876d278
Merge pull request #1800 from postscript-dev/add_SonyMisc3c_tags
Add SonyMisc3c makernote tags (tag 9400)
2021-07-28 12:00:42 +01:00
Kevin Backhouse
db1529aecc
Remove redundant call to exifData(). 2021-07-28 11:35:20 +01:00
Kevin Backhouse
593fcbd865
Add fuzzing dictionary and test all printStructure() options 2021-07-27 22:51:13 +01:00
postscript-dev
a82b6ceea5
Update last modified date in manpage 2021-07-27 09:20:32 +01:00
Kevin Backhouse
c486999845
Merge pull request #1799 from Exiv2/mergify/bp/main/pr-1790
bufRead needs to be adjusted after seek() (backport #1790)
2021-07-26 21:44:28 +01:00
Kevin Backhouse
35a2b25d64
Fix build error when EXIV2_DEBUG_MESSAGES is enabled. 2021-07-26 13:12:29 +01:00
Kevin Backhouse
2532f6db40
Add markerHasLength utility function. 2021-07-26 12:48:33 +01:00
Kevin Backhouse
96b85751ee
Add comment to explain bounds-check. 2021-07-26 12:04:59 +01:00