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
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
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
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
64fe77673f
Decouple EXIV2_BUILD_FUZZ_TESTS from EXIV2_TEAM_USE_SANITIZERS.
2021-08-11 15:11:01 +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
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
5bc444ff00
Use DataBuf rather than raw malloc.
2021-08-04 20:55:20 +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
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
e34e150f22
Replace assertion with an error message.
...
(cherry picked from commit 4ec1768415ba015041a9bb28ab17c1ccf6a8c63e)
2021-08-03 21:08:53 +00: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
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
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
Peter Kovář
8f889c132e
Corrected JPEG XL file type
2021-08-01 13:56:48 +02: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
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
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
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
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
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
6d5407e851
first search cwd for config file then check home dir
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
593fcbd865
Add fuzzing dictionary and test all printStructure() options
2021-07-27 22:51:13 +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
Kevin Backhouse
10bd09871f
Update src/jpgimage.cpp
...
Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com>
2021-07-26 12:04:58 +01:00
Kevin Backhouse
fed192dc97
Fix compiler warning.
2021-07-26 12:04:58 +01:00
Kevin Backhouse
483a1497a0
Improved handling of jpg segments to avoid out-of-bound reads.
2021-07-26 12:04:54 +01:00
Kevin Backhouse
deb41bd117
bufRead needs to be adjusted after seek()
2021-07-26 10:59:14 +01:00
postscript-dev
cc9d780534
Add SonyMisc3c makernote tags (tag 9400)
...
Changes:
+ Add tags. Rename Exiftool `SequenceLength` tags to `SequenceLength1`
and `SequenceLength2`, to prevent a name clash.
+ Update docs and manpage.
Source: [Exiftool](https://exiftool.org )
2021-07-26 10:40:54 +01:00