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
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
Kevin Backhouse
01b109e8ff
Merge pull request #1798 from Exiv2/mergify/bp/main/pr-1789
...
&bytes[0] (std::vector) will crash if bytes has zero elements (backport #1789 )
2021-07-25 22:08:52 +01:00
Kevin Backhouse
c3239e3187
&bytes[0] will crash if bytes has zero elements.
...
(cherry picked from commit 3e72d129e53b14e0b62d74aefed6bbd326562d63)
2021-07-25 20:34:35 +00:00
Kevin Backhouse
9004fb5a97
Remove redundant check.
...
(cherry picked from commit 19026fab2bc2b6dee2150f38153feb65a41cea17)
2021-07-25 20:31:59 +00:00
Kevin Backhouse
07225c05ee
Make sure that read is complete to prevent infinite loop.
...
(cherry picked from commit ffe5eb517dad93845e62144d8e53f52b17420ecd)
2021-07-25 20:31:59 +00:00
Christoph Hasse
7251a96da6
remove exv_grep_keys_t type alias
2021-07-25 20:58:06 +02:00
Christoph Hasse
d6c82b88bc
refactor: avoid unused variable warning of regex_error
2021-07-25 20:58:06 +02:00
Christoph Hasse
687b38a130
refactor: use POSIX regex syntax as that is what was used before
2021-07-25 20:58:06 +02:00
Christoph Hasse
d82980b563
refactor: replace old linux regex.h with regex from STL.
2021-07-25 20:58:06 +02:00
Kevin Backhouse
944e68fa15
Merge pull request #1787 from Exiv2/mergify/bp/main/pr-1766
...
Extra checking to prevent loop counter from wrapping around (backport #1766 )
2021-07-25 19:53:52 +01:00
Kevin Backhouse
686702616c
Merge pull request #1794 from kevinbackhouse/bmff-check-box-nesting
...
Enforce BMFF box nesting
2021-07-25 19:43:22 +01:00
Kevin Backhouse
3575a8258e
Merge pull request #1786 from Exiv2/mergify/bp/main/pr-1769
...
Safer std::vector indexing (backport #1769 )
2021-07-25 19:00:21 +01:00
Christoph Hasse
9aabdcf698
fix: add Sigma 30mm f/1.4 DC DN | C to canon lens detection
2021-07-25 16:58:16 +02:00
Kevin Backhouse
5eb464271e
Fix format specifier.
2021-07-23 16:55:47 +01:00
Kevin Backhouse
43d95b8a75
Fix compiler warnings.
2021-07-23 16:25:55 +01:00
Kevin Backhouse
3019fbee4f
Extra protection against large allocations.
2021-07-23 16:19:26 +01:00
Kevin Backhouse
78e9c8aa82
address + box_length == box_end
2021-07-23 15:24:59 +01:00
Kevin Backhouse
02d4ef2c5e
Support for 64-bit box lengths looked broken.
2021-07-23 15:06:57 +01:00
Kevin Backhouse
8c64e9abba
Add pbox_end param to BmffImage::boxHandler to enforce box nesting.
2021-07-23 13:23:56 +01:00
postscript-dev
293fd586ab
Add SonyMisc2b makernote tags (tag 9404)
...
Changes:
+ Add tags, pretty printing and tag group selector function
+ Update docs
Source: https://exiftool.org/TagNames/Sony.html
2021-07-21 10:48:28 +01:00
postscript-dev
b82084995c
Add getExifValue() to makernote_int.cpp
...
Function generalizes `getExifModel()`, allowing any value in a tag to
be accessed.
2021-07-21 10:13:42 +01:00