Commit Graph

8333 Commits

Author SHA1 Message Date
Luis Díaz Más c0c9155af3 ci: split command in several lines 2022-04-01 17:04:31 +02:00
Luis Díaz Más b8cb4e096f Merge pull request #2180 from Exiv2/main_issue2178
Fix out of bounds read in isValidBoxFileType()
2022-04-01 09:07:35 +02:00
Luis Díaz Más c6340caca7 Remove exiv2json sample and tests depending on it 2022-04-01 09:07:08 +02:00
Kevin Backhouse 74622cf494 Add poc for fuzzing coverage. 2022-04-01 08:11:25 +02:00
Luis Díaz Más d16ca65b01 Fix out of bounds read in isValidBoxFileType() 2022-04-01 08:05:00 +02:00
Luis Díaz Más 3b9fcb4b3d Update .clang-format to align pointers to the types 2022-04-01 07:55:07 +02:00
Luis Díaz Más 790fc465f4 Merge pull request #2172 from Exiv2/mergify/bp/main/pr-2167
Initial support for OM System MakerNote (backport #2167)
2022-03-31 08:49:23 +02:00
Rosen Penev fafe999c6e remove unused var from deleted stuff
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-31 08:47:37 +02:00
Miloš Komarčević 44c3aab2dc Add OM System MakerNote test
(manually adapted from 18e2b9a6bb305854bfe05d0275425ad3699ea757)
2022-03-30 11:16:44 +02:00
Miloš Komarčević 8fa30d66b4 Initial support for OM System MakerNote
(manually adapted from 916436903d34b88ea0d49c5084c51e02cfae9bfb)
2022-03-30 11:15:41 +02:00
Luis Díaz Más 8f9b3965ed Merge pull request #2175 from neheb/1
mostly nodiscard
2022-03-30 07:59:46 +02:00
Rosen Penev c0868aff31 std::function
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 21:04:23 -07:00
Rosen Penev c4eedd6ae4 nodiscard addition
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 20:58:11 -07:00
Rosen Penev 389501462a delete
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 20:54:12 -07:00
Rosen Penev 1fbe4b7bbd use = delete and move to public
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 18:45:30 -07:00
Rosen Penev c17e2a1a5a add missing destructor
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 18:41:19 -07:00
Rosen Penev 7a4541cf50 use empty()
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 18:36:22 -07:00
Rosen Penev 02fe0181df const variable
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 18:22:12 -07:00
Rosen Penev b75239c52d const member function
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-29 18:19:38 -07:00
Christoph Hasse 081dfbdfd1 also run format action on pull request 2022-03-28 10:33:35 +02:00
Christoph Hasse 08cef207ab add .git-blame-ignore-revs file and add clang-format commit to it (#2170)
* add .git-blame-ignore-revs file and add clang-format commit to it

* formatting fix follow up from #2158

* update .git-blame-ignore-revs
2022-03-28 09:55:11 +02:00
Luis Díaz Más 9cad8cea82 Merge pull request #2169 from neheb/1
remove various usages of memset
2022-03-27 11:33:50 +02:00
Rosen Penev 043547cbd0 remove various usages of memset
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-27 01:47:02 -07:00
Luis Díaz Más 5a47d251f5 Merge pull request #2158 from neheb/1
array and constexpr conversions
2022-03-27 09:54:25 +02:00
Rosen Penev bad4712df8 static constexpr conversions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-26 14:33:09 -07:00
Rosen Penev 9dc35e7380 find to std::find
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-26 14:32:22 -07:00
Rosen Penev 9cb1fcef5c std::array conversions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-26 14:32:22 -07:00
Luis Díaz Más 4fa8827844 Merge pull request #2163 from Exiv2/mainCleanups3
Another cleanup round in main
2022-03-25 09:12:53 +01:00
Luis Díaz Más d7f35e33f0 Remove useless static_casts 2022-03-25 08:43:37 +01:00
Luis Díaz Más ae4df71233 Remove DataBuf::copyBytes and use std::copy instead 2022-03-23 17:17:29 +01:00
Luis Díaz Más c5c315b6e7 Usage of EXIT_SUCCESS/FAILURE instead of hard-coded values 2022-03-23 16:55:18 +01:00
Luis Díaz Más 5b0418d136 Improve compare function: no need to count chars 2022-03-23 16:55:18 +01:00
Luis Díaz Más b05573fadc Remove most of the asserts from codebase 2022-03-23 16:55:18 +01:00
Luis Díaz Más 734b909721 Help for formatting enums & arrays with clang-format 2022-03-23 16:55:18 +01:00
Luis Díaz Más 1bf7f44f53 Rename variables for better readability 2022-03-23 16:55:18 +01:00
Luis Díaz Más 5ed9fb4120 Merge pull request #2155 from Exiv2/mainFixJp2_2
Fix in Jp2 metadata writing & improvements in reading (2)
2022-03-23 16:45:57 +01:00
Kevin Backhouse 8ffaaab84a Merge pull request #2161 from kevinbackhouse/FixIssue2160
Use std::round() in float_to_integer_helper
2022-03-20 15:09:53 +00:00
Kevin Backhouse ddc96bc38e Add exclusion for issue_2160_poc.jpg 2022-03-19 18:26:00 +00:00
Kevin Backhouse 15328aaa9f Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45291
Use std::round() to handle fractions correctly.
2022-03-19 18:12:10 +00:00
Luis Díaz Más 1ad9e52f3c Fix windows build 2022-03-18 15:07:45 +01:00
Luis Díaz Más 1545a1bc4a JP2 - stronger checks on Signatuer and FileType boxes 2022-03-18 14:55:16 +01:00
Luis Díaz Más 2b9f6ccf6b Adapt tests to changes in JP2 2022-03-18 14:44:25 +01:00
Luis Díaz Más e7478f744d Jp2Image: Implement more checks from JP2 standard + fix bug
- add debug info when parsing Signature box
- Move definitions & static stuff to anonymous namespace
- cleanup while studying code
- Make exceptions more similar to other formats
2022-03-18 14:37:07 +01:00
Luis Diaz b48e8e9379 Add unit tests for Jp2Image revealing bugs (see #2147) 2022-03-18 14:36:35 +01:00
Rosen Penev 5d5354edee clang-tidy: C array to std::array conversions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-18 13:19:45 +01:00
Luis Díaz Más 8a37d6a927 Merge pull request #2152 from Exiv2/mainClangFormat
clang-format whole project + new CI workflow for checking style
2022-03-18 08:34:15 +01:00
Dmitry Fedorov 98f982215e Added JPEG-XR test file (#1946)
This file is in JPEG-XR format and contains IPTC, XMP, geotag and ICC profile metadata
2022-03-17 14:59:34 +01:00
Luis Díaz Más 9111801b3c doc: add clang-format notes to CONTRIBUTING.md 2022-03-16 22:46:27 +01:00
Luis Díaz Más 30bf563f4d Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
Luis Díaz Más 0641a5f539 Add bash script to format whole project 2022-03-16 22:30:23 +01:00