Miloš Komarčević
1038e62a42
actions: simplify print summary using easyaccess
5 years ago
Miloš Komarčević
f6abec4432
exiv2 pr uses easyaccess API (co-authored with clanmills)
5 years ago
Miloš Komarčević
5e92d5e078
Fix easyaccess-test
5 years ago
Miloš Komarčević
98f4effeea
Add DateTimeOriginal to easyaccess
5 years ago
Miloš Komarčević
189e0c9338
Add more easy accessors for Exif & TIFF/EP overlap
5 years ago
clanmills
bfee7abfc5
Disable exiv2 option --binary
5 years ago
Olli Lupton
eec8e8902f
Add LensType entry for Olympus M.Zuiko Digital ED 17mm F1.2 Pro lens.
5 years ago
Leonardo Brondani Schenkel
0f6fef7507
Make lens name consistent with models 150 and 368
5 years ago
Leonardo Brondani Schenkel
c4d18d02e7
Detect Sigma 18-35mm f/1.8 DC HSM (firmware 2.x)
...
On Canon bodies and lens firmware 1.x, this lens identifies itself using
model number 150. Starting with firmware 2.x, this lens now identifies
itself using model number 368.
Exiv2 was correctly identifying the former but not the latter.
This commit also fixes a pre-existing bug in which exiv2 was not
correctly disambiguating lenses using model number 368.
5 years ago
Luis Díaz Más
9eb058bd43
Modify strncpy0 to avoid warning
5 years ago
Luis Díaz Más
44debddf4e
Hide zlib absolute path in cmake config file
5 years ago
Luis Díaz Más
8dc42199e8
Hide exiv2-xmp dependency in CMake config file:
5 years ago
Luis Díaz Más
b9164d9f8b
Revert "change implementation of Exiv2::base64encode() to adopt implementation from same URL as base64decode()."
...
This reverts commit b596f311f4
.
5 years ago
clanmills
b596f311f4
change implementation of Exiv2::base64encode() to adopt implementation from same URL as base64decode().
5 years ago
clanmills
c7bcfcfbf8
replace base64encode in src/futils.cpp
5 years ago
Robin Mills
55bdaafebf
Merge pull request #1341 from Exiv2/fix_1278_nls_test_0.27
...
Fix 1278 nls test 0.27
5 years ago
Robin Mills
5240630849
fix_1353_mingw_toolchain_0.27
5 years ago
clanmills
2adde8dd73
Fix compiling http.cpp and reinstate centOS on gitLab.
5 years ago
Robin Mills
bc01aac114
Merge pull request #1351 from Exiv2/fix_1343_png_0.27
...
Fix 1343 png 0.27
5 years ago
clanmills
9fa6d3965a
C++ changes requested by @piponazo. Fix python png_test() recommended by @LeoHsiao1. Update reference output.
5 years ago
clanmills
834dca39d0
Code changes
5 years ago
Luis Díaz Más
778479556f
Include winsock2 at the beginning of http.cpp
5 years ago
Luis Díaz Más
30773c92a3
WIN32_LEAN_AND_MEAN propagated with exiv2lib target
5 years ago
Luis Díaz Más
b304244766
Move winsock2 inclusion to http.cpp
5 years ago
Robin Mills
604a268059
Second effort to unexpose winsock2.h from include <exiv2/exiv2.hpp> using EXIV2_BUILDING_EXIV2 mechanism.
5 years ago
clanmills
7ff0e0613a
fix_1335_winsock2_0.27
5 years ago
clanmills
e0e2a71a48
Fix: https://travis-ci.org/github/Exiv2/exiv2/jobs/730867927
5 years ago
clanmills
48afa7548d
fix_1329_remove_bigtiff_0.27
5 years ago
clanmills
37cc2db72d
fix 1307 ASAN issues with RemoteIo
5 years ago
Luis Díaz Más
f39b23806b
Assume existence of stdint.h
5 years ago
Luis Díaz Más
b7ee13eb63
Use ctime instead of time.h
5 years ago
Jan Tojnar
306c8a6fd4
cmake: Fix include_directories for exiv2lib target
...
The headers are installed to ${CMAKE_INSTALL_INCLUDEDIR} but the CMake config was hardcoded to include directory.
5 years ago
Jan Tojnar
48f2c9dbba
cmake: Fix paths with absolute GNUInstallDirs
...
It is not generally true that `CMAKE_INSTALL_<dir>` variables are relative paths:
https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files
https://github.com/jtojnar/cmake-snips#assuming-cmake_install_dir-is-relative-path
Let's join them properly as paths, not strings.
On Windows, the absolute paths will likely remain unsupported as neither the CMake function,
nor the C++ code is able to detect absolute paths.
Signed-off-by: Jan Tojnar <jtojnar@gmail.com>
5 years ago
Robin Mills
963c91fe8a
fix_1266_GPSProcessingMethod
5 years ago
tbeu
f61fa2ed9d
Fix write ability flags of PSD files ( #1260 )
5 years ago
Robin Mills
22ed9b157b
Fixed typo declaration of pad when writing ICC profile.
5 years ago
Robin Mills
181dd47385
Fix correctly this time and tested with the user files. Test suite updated to use Reagan2.jp2
5 years ago
Robin Mills
b91de7acd0
fix_1236_0.27
5 years ago
Robin Mills
58fb9f850b
Merge pull request #1227 from Exiv2/v0.27.3_RC2
...
v0.27.3 rc2
5 years ago
clanmills
7383d96d47
Fix compiler error when using EXIV2_DEBUG_MESSAGES.
5 years ago
Robin Mills
08d1cd84c2
Don't compile localtime.c (hurray)
5 years ago
Robin Mills
6b4a9e5b40
fix_1219_remove_localtime_0.27
5 years ago
Robin Mills
7bf40a2408
fix_1211_c++11_0.27. I'll explain this in the PR.
5 years ago
clanmills
6d7a5266ea
fix_1219_mingw_crw_date_0.27
5 years ago
Robin Mills
3f1a6a509b
Merge pull request #1211 from Exiv2/cpp98_cygwin_0.27
...
http.cpp doesn't compile with C++/98 on Cygwin and MinGW/msys2.
5 years ago
clanmills
0215608071
http.cpp doesn't compile with C++/98 on Cygwin and MinGW/msys2.
5 years ago
clanmills
d07a1f94f8
fix_547_0.27
5 years ago
clanmills
e7d113dc42
fix_1208_NikonLens_0.27
5 years ago
clanmills
ea28be68e9
Fixing fedora/mingw build breaker. https://gitlab.com/D4N/exiv2/-/jobs/555626122 Thanks to @D4N for this discovery.
5 years ago
clanmills
5f6738a098
get http.cpp to call WSAStartup() on Cygwin and MinGW
5 years ago
clanmills
5b4743301e
The smart robot at codeCover/lgtm spotted typos in the code! Robot's almost as smart as Dan!
5 years ago
clanmills
c920f2ac44
CurlIo/http object to throw kerFileOpenFailed and not kerTiffDirectoryTooLarge
5 years ago
clanmills
f768fc0a42
RemoteIo/http object to throw kerFileOpenFailed and not kerTiffDirectoryTooLarge
5 years ago
clanmills
2bad338b9d
Fix compiler warning on macOS about enforce condition being always true.
5 years ago
clanmills
ec979d522a
Changes following review.
5 years ago
clanmills
5b07d9d8d6
Removed print0x9286() from tags.cpp. Codecov detected that this code is no longer used! Amazing.
...
Functionality now in exif.cpp std::ostream& Exifdatum::write(std::ostream& os, const ExifData* pMetadata) const.
5 years ago
clanmills
7515d85a09
Fix exiv2 option --binary to enable report of long binary values.
5 years ago
clanmills
9df691c0c5
Report Comments as charset=encoding data (not charset="encoding" data)
5 years ago
clanmills
cca0245d87
Fix compiler warning.
5 years ago
clanmills
43b06b6814
Don't allow binary into the output stream!
5 years ago
Robin Mills
a1abe21a71
Discussion: https://github.com/Exiv2/exiv2/issues/1200#issuecomment-623975537
5 years ago
Robin Mills
99aa8881a2
$ make version_test segfaults on FreeBSD when called from an ssh script.
5 years ago
Robin Mills
2e568e762b
Fix version= for Visual Studio 2019.
5 years ago
clanmills
0a06dc9ee4
Issue identified in #1101 master/MinGW/Qt. Apply the change here (although this is working on 0.27-maintenance)
5 years ago
clanmills
cd5c3e4ff9
Remove target_compile_features(exiv2 PRIVATE cxx_std_98) from src/exiv2
5 years ago
clanmills
63a13e8620
Adding option -DEXIV2_BUILD_USE_C++11
5 years ago
Robin Mills
df04671976
Enforce cxx_std_98 in samples, unit_tests, and exiv2 application (to eliminate 2305 GCC unique_ptr warnings)
5 years ago
Robin Mills
47d89a56bb
Merge pull request #1176 from Exiv2/0.27_cxx_standard
...
fix_1163 Require c++98 privately only in library target
5 years ago
clanmills
92f2458229
fix_1180_date_separator
5 years ago
Luis Diaz Mas
235087af4e
Do not call tell() in File::eof() - Fix tests & performance
5 years ago
Luis Diaz Mas
fabfcac274
Require c++98 privately only in the library target
5 years ago
clanmills
904fa19d1c
Code changes
5 years ago
clanmills
13565be3d2
Change for solaris.
5 years ago
clanmills
3226573376
fix_1004_0.27
5 years ago
Robin Mills
e077261c99
Merge branch '0.27-maintenance' into fix_1033_0.27
5 years ago
Robin Mills
817b2073a1
Merge branch '0.27-maintenance' into fix_1045_0.27
5 years ago
Robin Mills
2e19ee08c5
Merge branch '0.27-maintenance' into fix_1047_0.27
5 years ago
Robin Mills
181cab661b
Merge branch '0.27-maintenance' into fix_1091_0.27
5 years ago
Robin Mills
9cbcb8878c
Merge branch '0.27-maintenance' into fix_1069_0.27
5 years ago
clanmills
3ee25009ee
fix_1033_0.27
5 years ago
clanmills
cc1a6033db
fix_1045_0.27
5 years ago
Robin Mills
adf97f997d
Merge branch '0.27-maintenance' into fix_1091_0.27
5 years ago
clanmills
ef58603260
fix_1047_0.27
5 years ago
clanmills
c51573c92e
fix_1049_0.27
5 years ago
Robin Mills
3c01ad78f3
Merge branch '0.27-maintenance' into fix_1069_0.27
5 years ago
clanmills
571d056222
fix_1091_0.27
5 years ago
clanmills
9333f0d3f5
fix_1069_0.27 #1069
5 years ago
clanmills
d0d6ff2e9b
fix_1059_0.27
5 years ago
clanmills
c49cdd6395
Code changes.
5 years ago
clanmills
18ed65a25f
fix_Sony2010e_0.27 Thanks to @sridharb1
5 years ago
clanmills
a7683f95a7
Detab src/pentaxmn_int.cpp
5 years ago
Robin Mills
0fe6817177
Merge branch '0.27-maintenance' into fix_1084_0.27
5 years ago
clanmills
8f15784314
fix_1084_0.27
5 years ago
Robin Mills
8382225850
Merge branch '0.27-maintenance' into fix_1099_0.27
5 years ago
Robin Mills
2956309afd
Merge branch '0.27-maintenance' into fix_1099_0.27
5 years ago
clanmills
7658d8aefd
fix_macOS_0.27
5 years ago
clanmills
698b418f73
fix_1097_0.27
5 years ago
clanmills
82087b58e4
fix_1099_0.27
5 years ago
dbeichl
188ddab7cc
Merge branch '0.27-maintenance' into 0.27-maintenance-makernote-update
5 years ago
Daniel Beichl
3fe4460a23
Add various attributes for canon maker note
...
- Decode Attributes CameraType, AEB, SlowShutter, AutoISO,
CameraTemperature, FlashGuideNumber, BulbDuration and AutoRotate
- Small signedness fix to decode printFiFocusDistance to return Infinite
5 years ago
Daniel Beichl
529fa8770f
Add nikon 153 point phase af
5 years ago
Daniel Beichl
b45c82e091
Add some values to panasonic focus mode attribute
5 years ago
Robin Mills
cfdd1c7b3f
Pointless change to trigger CI which is beefing about test_issue_987 which has been removed.
5 years ago
Robin Mills
8de479f83e
Merge branch '0.27-maintenance' into fix1001_rename_AFPrimaryPoint
5 years ago
clanmills
db1be4ae8e
fix_1046_pt-GPSProcessingMethod
5 years ago
Fredrik Strandin
5360d82c4a
Add ID for Tokina atx-i 11-16mm F2.8 CF (Nikon)
...
Fixes #1078
(cherry picked from commit 2870a1648e86b777afa0ae1540ea4791482d1354)
6 years ago
Andreas Sturmlechner
0890d66a6e
EXIV2_ENABLE_SSH: Fix compatibility with >=libssh-0.9.2
...
0.9.1 remains broken regardless and is beyond fixing in this place.
Build-tested with both libssh 0.9.0 and 0.9.2.
Solution copied from KDE's kio-extras commit 24506c2af8d1904a99538543804306c6c2b81ca2
6 years ago
David-Tillmann Schaefer
b8bf9cc4fd
changes comma in aperture to dot to match the other exif entries
...
(cherry picked from commit 054bc9068b3c4e83be97e42d1a8c9829c2c83e1b)
6 years ago
derselbst
70b0c17421
Fix a memory leak in CiffHeader::read()
...
Memory for pPadding_ was allocated with new[] .
6 years ago
derselbst
ccf4b59c91
Merge remote-tracking branch 'origin/0.27-maintenance' into fix1001_rename_AFPrimaryPoint
6 years ago
Luis Díaz Más
20a9e5affe
Fix format-overflow warnings by using bigger buffer
6 years ago
clanmills
8859209b95
fix_1004_lens_exiftool_compatibility
6 years ago
Robin Mills
4852bd2ab2
fix_910_remote_io_block+1
6 years ago
Jens Georg
b7890776c6
crwimage: Check offset and size against total size
...
Corrupted or specially crafted CRW images might exceed the overall
buffersize.
Fixes #1019
(cherry picked from commit 683451567284005cd24e1ccb0a76ca401000968b)
6 years ago
Robin Mills
05538ebea2
fix1001_rename_AFPrimaryPoint
6 years ago
Robin Mills
7844b11e4b
[xmpsdk] Add XMP Initialisation/Cleanup code to all main() programs
...
- update documentation
- Removed redundant calls to Exiv2::XmpParser::terminate() (legacy of our
discusssion with @tester0077).
- this fixes #976
6 years ago
clanmills
1b917c3f7d
Fix #1011 fix_1011_jp2_readmetadata_loop
6 years ago
clanmills
4cf040ac4a
Install man page from man/man1/exiv2.1
6 years ago
clanmills
90f9f0bc19
Add support for Exif.Canon.AF tags to be read from images
...
This PR (and fix981_canonAutoFocus2) use a decoder listed in TiffMappingInfo to
decode Exif.Canon.AFInfo. The decoding function "manufactures" Exif tags such as
Exif.Canon.AFNumPoints from the data in Exif.Canon.AFInfo. These tags must never
be written to file and are removed from the metadata in
exif.cpp/ExifParser::encode().
Three of the tags created (AFPointsInFocus,AFPointsSelected, AFPrimaryPoint) are
bitmasks. As the camera can have up to 64 focus points, the tags are a 64 bit
mask to say which points are active. The function printBitmask() reports data
such as 1,2,3 or (none).
This decoding function decodeCanonAFInfo() added to TiffMappingInfo manufactures
the new tags. Normally, tags are processed by the binary tag decoder and that
approach was taken in branch fix981_canonAf. However, the binary tag decoder
cannot deal with AFInfo because the size of some metadata arrays cannot be
determined at compile time.
6 years ago
sat3ll
d59d929eb2
add ID for Sigma APO MACRO 180mm F3.5 EX DG (nikon)
...
(cherry picked from commit 9852e21761d962a7deb1e5e9673b3b5f5018dbfb)
6 years ago
Marek Kubica
515569030b
Remove AF designator from Tamron 70-200 G1
...
This removes the AF from the name of the lens thus matching the name
that lensfun and exiftool determine.
(cherry picked from commit a573f9795baa1cf8a68296a80114fdc575f84319)
6 years ago
Kevin Backhouse
edb4bf78ca
Add bounds check to MemIo::seek(). ( #944 )
...
- Regression test for missing bounds check in MemIo::seek()
- Add bounds check to MemIo::seek(), this fixes CVE-2019-13504
(cherry picked from commit bd0afe0390439b2c424d881c8c6eb0c5624e31d9)
Additional fixes for 0.27:
- Add fix for the linux variant of MemIo::seek
- Change type of variable from unsigned to signed
6 years ago
Robin Mills
76d2798172
Pushing very helpful suggestion by @lantw44
6 years ago
clanmills
94a777609e
fix947_FreeBSD_BasicError_typeinfo
6 years ago
Luis Díaz Más
e925bc5add
Fix integer overflow by checking size against header_size
...
Note that the problem occurs when data_size is less than header_size
what causes a buffer overflow in &data[i]
Co-Authored-By: D4N <dan.cermak@cgc-instruments.com>
6 years ago
Luis Diaz Mas
c4bfd0f0f1
Remove linkage with -ldl
...
The code using dlopen/dlclose/etc was removed from version.cpp in the past
6 years ago
Luis Díaz Más
113136e134
Replace DEBUG with EXIV2_DEBUG_MESSAGES
...
Fixes #926
6 years ago
Kevin Backhouse
cb7dc5a528
Check for integer overflows in mrwimage.cpp
6 years ago
Robin Mills
ab375fb074
Add support for FocusPosition in Sony RAW files ( #906 )
...
* Fix 582 Add support for FocusPosition in Sony RAW files
* Thanks to @boardhead sonyFpCrypt() works correctly. Removed debug code. Fixed typos.
* Update doc/templates/Makefile to process Sony2Fp
* Following review by @boardhead. Renamed sonyFpCrypt() as sonyTagDecipher().
* Fixed writing the tag thanks to @boardhead explaining encipher/decipher.
Sadly, ArrayCfg/crpyt does not know if he's encrypting/decrypting.
I've added a sniff in TiffEncoder::visitBinaryArrayEnd to avoid changing the API.
* Added URL to discussion concerning sonyTagCipher()
* make sonyTagCipher() a static function with no external visibility.
6 years ago
Robin Mills
0a47d93ccf
Add README-SAMPLES.md and remove exiv2samples.1 ( #921 )
...
* Add README-SAMPLES.md and remove exiv2samples.1
* Remove samples man page from CMake
* Add all sample programs to Doxygen.
* Adding links to source code on exiv2.org
Authored-By: Robin Mills <robin@clanmills.com>
Authored-By: Luis Díaz Más <piponazo@gmail.com>
6 years ago
Luis Díaz Más
df5054b910
Merge branch '0.27-maintenance' into 0.27-use-libssh-config
6 years ago
Andreas Sturmlechner
e85ce17fc9
Switch to libssh's own libssh-config.cmake
...
This is provided by libssh since 2013.
6 years ago
Andreas Sturmlechner
6819f2ac45
Fix install path of exiv2ConfigVersion.cmake
...
This seems to have been caused by duplicate work between master branch
and 0.27-maintenance branch, as commit 3b48249eeb350301dfb3efa3ba6f7d7b162455be
had already got that right.
6 years ago
Robin Mills
db3a260167
Changes following code review.
6 years ago
Robin Mills
b6f82a8f58
Change byte order in nikonAf22Cfg to invalidByteOrder (see #880 and #885 ).
6 years ago
Robin Mills
bd1e7522c2
Simplification of TiffDecoder::decodeTiffEntry().
6 years ago
Robin Mills
b02c80f7e4
fix646_NikonAF22
6 years ago
Luis Diaz Mas
43ed51f609
DLL information depends now on proper definition
6 years ago
clanmills
d8a513b7df
Updated following code review.
6 years ago
clanmills
742cd5885b
Fixing Windows build-breaker for EXV_UNICODE_PATH in `Protocol fileProtocol(const std::wstring& path)`
6 years ago
clanmills
ab0b97c729
fix895-ICCProfile-FalseWarning
6 years ago
Robin Mills
5a3afa9cbe
Update man page src/exiv2.1 to clarify overwrite policy with command rename
...
This fixes #662
6 years ago
sat3ll
2beefab719
Add Tamron SP 70-300mm f/4-5.6 Di VC USD (Model: A030) (Nikon Mount)
...
(cherry picked from commit 1640ac8d0ca8bbb975f7a986bf0537545423fffc)
6 years ago
Robin Mills
2451e7ba56
fix880_NikonEndian
6 years ago
clanmills
b1ed1bf246
fix743_NikonSigmaArtLens
6 years ago
Kevin Backhouse
b35c43e7c2
Remove call to atol, which might read off the end of the buffer. ( #870 )
6 years ago
Kevin Backhouse
9092b422e6
Prevent out-of-bounds read. ( #868 )
6 years ago
Kevin Backhouse
6068df4c01
Add better bounds checking in PngImage::printStructure(). ( #862 )
6 years ago
Kevin Backhouse
109d5df7ab
Check bounds of jpg_img_off and jpg_img_len. ( #858 )
6 years ago
Kevin Backhouse
1c1436e94e
Add bounds check of resourceSize. ( #856 )
6 years ago
Kevin Backhouse
80cd0d2990
Add bounds check on allocation size. ( #854 )
6 years ago
Kevin Backhouse
81ae213c71
Check bounds of allocation size. ( #848 )
6 years ago
Kevin Backhouse
7798ae2557
Throw an exception if the data location is invalid. ( #842 )
6 years ago
Kevin Backhouse
8dc87a1214
Add bounds check. ( #840 )
6 years ago
Kevin Backhouse
43f154f44b
Merge two enforces into one.
6 years ago
Kevin Backhouse
d3e69f6d2c
Add bounds check on allocation size.
6 years ago
Kevin Backhouse
c0ecc2ae36
Avoid integer overflow.
6 years ago
Robin Mills
f4a37c63f2
version.cpp Pragma removed. Platform includes simplified.
...
cmake/packaging.cmake Changed comment about VS version numbers
6 years ago
Robin Mills
b8af098285
Removed redundant _MSC_VER pragma to link psapi as the link is specified in CMakeLists.txt.
...
Simplified the platform include files required to support getLoadedLibraries()
6 years ago
Robin Mills
955962eaa8
Code revisions after review by @piponazo
6 years ago
Robin Mills
b0a9cb5624
NetBSD/FreeBSD Support
6 years ago
Kevin Backhouse
6a44698abc
Small change to comment.
6 years ago
Kevin Backhouse
3c818f49d9
Revert accidental whitespace change.
6 years ago
Kevin Backhouse
3faeaefbf5
Improve portability of bounds checks.
6 years ago
Kevin Backhouse
86816c0280
Fix signed/unsigned mismatch.
6 years ago
Kevin Backhouse
caa4e6745a
Avoid negative integer overflow when `filesize < io_->tell()`.
...
This fixes #791 .
6 years ago
clanmills
db870755b9
fix #818 . Restore 0.25 behaviour of `$ exiv2 -g image ...` to apply grep to keys.
6 years ago
Kevin Backhouse
8cd95e2218
Avoid negative integer overflow when `chunkLength == 0`.
...
This fixes #789 .
6 years ago
Luis Díaz Más
f05d100579
CURL lib and include directories private for exiv2lib
...
(cherry picked from commit 5d64a0b11c5a45dd9d58c56e946301f3f98942a7)
6 years ago
Kevin Backhouse
6fa2e31206
Avoid negative integer overflow when `iccOffset > chunkLength`.
...
This fixes #790 .
6 years ago
Robin Mills
fe3f3248dd
Fix in sidecar files #589
6 years ago
Kevin Backhouse
ae20c30805
Avoid null pointer exception due to NULL return value from strchr.
...
This fixes #793 .
6 years ago
Robin Mills
78676b2a02
Fix #798
6 years ago
Robin Mills
7a9c928efb
Fix to exiv2.1 man page for v0.27.1
6 years ago
Robin Mills
514ae0fa89
Fix #780
6 years ago
Luis Díaz Más
51f3910413
[jp2image] Limit data representation to 30 bytes
...
- fixes #744
6 years ago
D4N
adfc01f2e0
Update tests/bugfixes/github/test_issue_742.py
...
Co-Authored-By: piponazo <piponazo@gmail.com>
(cherry picked from commit 39d8904696338d5bd4a9c7e9a96a798a791d0973)
6 years ago
Luis Diaz Mas
25ddbaa6c0
Make subBox.length check in jp2image.cpp more robust
...
(cherry picked from commit a154b992ccad71a7d95a94cdedb933fa66a51b61)
6 years ago
Luis Díaz Más
8c81e1146c
clang-format Jp2Image::printStructure()
...
(cherry picked from commit b6e4ca0a8cfff1ad0f6040901382863cccee33cb)
# Conflicts:
# src/jp2image.cpp
6 years ago
Luis Díaz Más
051b5d9df1
Fix #742 by detecting incorrect subBox size
...
(cherry picked from commit 1bdd3eab5ebdde324dbfecc3fb6d6495b32d2e4d)
6 years ago
Dan Čermák
5e6c2855ce
[NikonMakerNote] Fix overread in Nikon1MakerNote::print0x0088
...
This function was printing the string from the array of strings nikonFocusArea,
but it wasn't verifying that the array index is actually valid.
Now this function will output "Invalid value" instead of crashing.
6 years ago
clanmills
282e99b6b0
Fix #610
...
(cherry picked from commit 54367e18ed0bf8bae6d8449341a6f82779f6d3c7)
6 years ago
Luis Díaz Más
9296067b95
Fix access to null pointer in TiffParser
6 years ago
Luis Díaz Más
4265ac5e0f
exiv2-xmp linked privately
6 years ago
Seth Parker
892d39e3bf
Add missing libintl include dirs to exiv2lib_int and exiv2
6 years ago
Michał Walenciak
6887822243
removing unused header generation
6 years ago
Michał Walenciak
a7340a3801
removinf usage of EXIV2_DEPRECATED macro
...
It can expand to [[deprecated]] which cannot be combined
with result of EXIV2API macro expansion: __attribute__(...)
6 years ago
Michał Walenciak
aae88060ca
Use ${CMAKE_INSTALL_LIBDIR} as proper files location
6 years ago
Michał Walenciak
4ddd44e9da
create & install exiv2ConfigVersion.cmake
6 years ago
Luis Diaz Mas
127c2eac0e
Fix warnings on MSVC
7 years ago
Luis Díaz Más
704fc56d52
Keep the profileName from readMetadata and use it in writeMetadata
7 years ago
Luis Díaz Más
e385599067
Refactoring to make the doe more readable. Fix icc tests
7 years ago
Luis Díaz Más
436b0f87b5
Add missing header when -DDEBUG is present
7 years ago
Luis Díaz Más
d1097fab59
Factor our function to read PNG Chunk info
7 years ago
Luis Díaz Más
914a8c5585
Factor out exception throw in different places inside isPngType
7 years ago
Luis Diaz Mas
88f22e13cb
Fix ICC profile in PNG images
7 years ago
Luis Diaz Mas
6abdb7e77a
Install new file exiv2lib_compiler_detection.h
7 years ago
Luis Diaz Mas
9d62998973
cmake: compile video sources conditionally
7 years ago
Luis Díaz Más
798396e71a
cmake: use CONAN_PKG::OpenSSL only if NOT APPLE
7 years ago
Luis Díaz Más
08478c3217
Fix SSL linking issues on Windows
7 years ago
Luis Díaz Más
4fa2bc7008
Propagate CURL linkage when it is enabled
7 years ago
Luis Díaz Más
04c9b181cc
Fix #644 . Export specializations of BasicError
...
- Only export BasicError::setMsg which is the only implementation present in the .cpp
- Only export BasicError specialization on __APPLE__
It seems that gcc automatically adds the attribute when the visibility
settings are set to hidden. See this link for more information:
https://reviews.llvm.org/D35388
7 years ago
Luis Diaz Mas
6f8d8e3da6
cleanup header inclusions in API
7 years ago
Luis Diaz Mas
acc9fa012d
Reliable detection of strerror_r variants
7 years ago
Andreas Schneider
ed3a0f1341
cmake: Install header files without globbing
...
Fixes #627
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 0b34ccb9a3b26cd1c5267c6a5c15e9fa1a665adb)
7 years ago
Andreas Schneider
6062b1b803
cmake: Rename xmp to exiv2-xmp to avoid name conflicts
...
There is already a libxmp file by the xmp project on https://xmp.sf.net .
To avoid issues prefix with exiv2.
Fixes #624
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 89509d7a3915ba474cbc3f8c85ab9bec4954ceda)
7 years ago
Alexander Steffen
8453ef0466
Add Tamron SP 24-70mm f/2.8 Di VC USD G2 for Canon
...
Fixes #330 .
7 years ago
Alexander Steffen
f586d57bb1
Add various Sigma and Canon lenses
7 years ago
Alexander Steffen
cf4f14c67b
Add new IDs for Sigma lenses with firmware 2.00
...
The firmware update changed the IDs, so that the same lens may now be known
under different IDs.
7 years ago
Natanael Copa
63f1fde85b
Fix path for errno.h
...
Fix warnings when built with musl libc by using the correct path for
errno.h as defined in POSIX.
Fixes the following warning:
In file included from /home/ncopa/src/exiv2/src/http.cpp:74:
/usr/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp]
#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
^~~~~~~
7 years ago
Natanael Copa
480430d397
Fix usage of strerror_r
...
Only GNU libc has implementation of the GNU variant of strerror_r, so
also for __GLIBC__ to determine which strerror_r implemenation to use.
This fixes build with musl libc, which makes some, but not all, GNU
extensions available with _GNU_SOURCE.
7 years ago
Luis Díaz Más
17fecb358f
Merge branch 'master' of https://github.com/FreddieWitherden/exiv2 into FreddieWitherden-master
7 years ago
Robin Mills
a9404154bc
Fix: https://github.com/Exiv2/exiv2/issues/585
7 years ago
Robin Mills
88ec8b88ea
Fix #562 for 32 bit builds (don't throw arithmetic exception).
7 years ago
Robin Mills
a33041a8b7
Fix: https://github.com/Exiv2/exiv2/issues/562 for stringFormat() crashes.
7 years ago
Robin Mills
03b4f1deae
Fix: https://github.com/Exiv2/exiv2/issues/580
7 years ago
Robin Mills
56ba273a90
Fix: https://github.com/Exiv2/exiv2/issues/577
7 years ago
Robin Mills
43683f1eff
Fix #531
7 years ago
Robin Mills
23483dff86
#571 Restore the original windows getProcessCode() because Microsoft's GetModuleFileName isn't effective!
7 years ago
Robin Mills
108509a089
Correction to Microsoft sample code! https://docs.microsoft.com/en-gb/windows/desktop/Services/installing-a-service
7 years ago
Robin Mills
9cb6c1e4c9
Correction in futils.cpp
7 years ago
Robin Mills
22e49cc78b
Try to fix https://github.com/Exiv2/exiv2/issues/572
7 years ago
Robin Mills
3af6f43ff0
Fix: https://github.com/Exiv2/exiv2/issues/571
7 years ago
Robin Mills
eab816fd32
src/version.cpp report enable_nls
7 years ago
clanmills
c22a38cfb4
Fix for https://github.com/Exiv2/exiv2/issues/560 (eraseFamily() crashes in MSVC/Debug).
7 years ago
Robin Mills
062bad7535
Adding output for have_regex to version.cpp
7 years ago
Robin Mills
1b136f0657
Revision to PR#557. Restored XmpData::erase() and added XmpData::eraseFamily(). Restored and augumented conversions.sh
7 years ago
Robin Mills
ccd708df24
Fix: https://github.com/Exiv2/exiv2/issues/521
...
conversions.sh reveals a (harmless) order change runTest exiv2 -M'set Xmp.xmp.ModifyDate 2015-04-17T18:10:22Z' v.xmp
7 years ago
Luis Díaz Más
0d7b3ecd1e
Update man page
7 years ago
Luis Díaz Más
4ed5bdc78b
CMake: Supress MSVC PDB warnings
7 years ago
skal
ecaf1dd478
Fix alpha bit detection in VP8L chunks
...
As per the spec ([1]), the alpha_bit is located on the 4th byte of the payload, just after the height.
This seems to fix the bug reported on GIMP ([2]) where an incorrect file was generated.
[1] https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification#2_riff_header
[2] https://gitlab.gnome.org/GNOME/gimp/issues/1818
7 years ago
Luis Díaz Más
6e42c1b55e
Fix #561 . Use proper counter for the idx variable
7 years ago
Luis Díaz Más
34e411d2fc
Fix 547: option -pR only available in Debug mode.
...
Note that the method Params::evalPrint() has been clang-formatted.
7 years ago
Luis Díaz Más
186352e295
conan: copy 3rd party dlls only if the conanDlls folder exists
...
Note that this folder will only exists if at least one of the conan packages managed with the shared option = True.
7 years ago
Robin Mills
89375979d8
https://github.com/Exiv2/exiv2/issues/555
...
I have restored the Macro EXIV2_TEST_VERSION in include/exiv2/version.hpp
I have added an option --version-test to exifprint.cpp to test/validate EXIV2_TEST_VERSION works as documented.
Version strings in Exiv2 v0.27 and later have a fourth digit to indicate the pre-release number of the build.
Pre-release builds should never be used for production purposes.
7 years ago
Luis Díaz Más
ee28e8ae15
CMake: Install public headers
7 years ago
Luis Díaz Más
8e5ee7a0e6
Fix debug flag preprocessor condition
7 years ago
Luis Díaz Más
9547cddbd1
Add protection around EXV_LOCALEDIR definition
7 years ago
clanmills
c5cd09bebe
Fix getProcessPath() on Cygwin
7 years ago
clanmills
2f70ae4305
Fix getProcessPath()
7 years ago
Robin Mills
8a6cd5d24e
Fix -vVg loops
7 years ago
Luis Díaz Más
0c871a5878
CMake: Align sources and headers in two columns
7 years ago
Luis Díaz Más
faa3a607ab
CMake: Remove FREEBSD variable + Remove commented code
...
- Plus: EXV_LOCALEDIR is now defined only when needed.
7 years ago
Luis Díaz Más
5fc905a799
CMake: remove variable EXIV2_SRC
7 years ago
Luis Díaz Más
fa5f057f8c
CMake: Remove useless source_group commands
7 years ago
Luis Díaz Más
b208bcef7d
CMake: CURL does not need to be propagated
7 years ago
Luis Díaz Más
37538399d6
CMake: Modernize src/CMakeLists.txt by using target_sources.
7 years ago
Luis Díaz Más
9980107586
Only include zlib directory when building the exiv2lib
7 years ago
Luis Diaz Mas
e397f8f053
Fix #533 - Apply patch proposed by Dominique Nerriec
7 years ago
Luis Diaz Mas
83bb4aa80a
code formatting
7 years ago
Luis Díaz Más
38b60a3e8e
CMake: Simplify Intl finding
7 years ago
Luis Díaz Más
4ffc577e4e
CMake: remove useless directory inclusions for exiv2
...
Note that ${CMAKE_SOURCE_DIR}/include is already passed to exiv2
through the exiv2lib target.
7 years ago
Luis Díaz Más
185bcaca05
Link exiv2 app againts libintl
7 years ago
Luis Díaz Más
aae84e4643
Add missing inclusions of cstdio and cstdarg
7 years ago
Luis Díaz Más
44a01863be
Include unistd.h only where it is needed
7 years ago
Luis Díaz Más
38ed6de05d
MSVC: Move compile definitions from config.h to CMake.
...
+ Also remove inclusion of <Windows.h> from config.h
7 years ago
Luis Díaz Más
8bf9ca8e6d
MSVC: Delete deprecated stuff related to MSVC < 2008
7 years ago
Luis Díaz Más
d1c2e2f64f
bindtextdomain point to relative path to bin directory
7 years ago
Luis Díaz Más
7485bb54d7
Create function getProcessPath and add unit test for it
...
Debugging: Relative and Absolute path alternatives
7 years ago
Luis Díaz Más
e20329b8e0
Remove EXV_HAVE_DLL and disable C4251 always on msvc.
7 years ago
Luis Díaz Más
417ad89e4b
Pass argument by const reference
7 years ago
Luis Díaz Más
2203dce828
Fix compilation in clang
7 years ago
Luis Díaz Más
59ba209fe8
Move BlockMap to .cpp file (Remove it from API)
...
- Also make some BlockMap methods const
7 years ago
Luis Díaz Más
fab770887b
Initialize member variables not initialized in the constructor
7 years ago
Luis Díaz Más
20a29cc9c4
Initialize variable in constructor initialization list
7 years ago
Luis Díaz Más
58a96d5908
Fix - Exception thrown in function that was declared not to throw
7 years ago
Luis Díaz Más
2d1e1fe6ef
Reduce the scope of variables
7 years ago
Luis Díaz Más
dc7eb5008b
Add explicit to constructors with 1 argument
7 years ago
Luis Díaz Más
1620198568
Update fujiColor tag with descriptions for new Fujifilm monochrome modes
7 years ago
Robin Mills
ac951622f4
Update DateTimeOriginal in NEF images
7 years ago
Luis Díaz Más
ae49250942
Check in Image::printIFDStructure if seek and reads are OK
7 years ago
Luis Díaz Más
59013f2e2f
Formatting code
7 years ago
Luis Diaz Mas
b7c71f3ad0
PSD: enforce Length of image resource section < file size
7 years ago
Luis Diaz Mas
6896693251
PSD: Use Safe::add for preventing overflows in PSD files
7 years ago
Luis Díaz Más
933ce589a6
Fix infinite loop in getopt.cpp
...
Note that the getopt code was looping forever when one of the argument
options was incorrect. Example:
./exiv2 -A 20:00:00 -Y 2018 -O 11 -D 01 ad myImage.tiff
7 years ago
Robin Mills
b608ad9fdd
Restore exiv2.pc in the mix ( #497 )
7 years ago
Luis Díaz Más
8b877d6ed6
SOVERSION is VERSION_MINOR as in 0.26
7 years ago
Luis Díaz Más
c34c545e31
Change back the library name to exiv2. Generate PDBs in CURRENT_BINARY_DIR.
...
We need to specify where to generate the PDB so that it does not clash with the PDB file generated
for the exiv2 application.
7 years ago
Luis Díaz Más
8d5d453c13
Use the MSYS CMake variable to determine when to use localtime.c
7 years ago
Luis Díaz Más
bc1c17fd78
Add back localtime.c implementation for MinGW
7 years ago
Robin Mills
a099f2440a
Man page update to describe the configuration file.
7 years ago
Robin Mills
42084f2563
Add support for MinGW/msys2 in 32 bits + Updates in buildserver
7 years ago
Robin Mills
e347b41279
Modified Exiv2::Internal::stringFormat() to use larger initial guess for 'need' to fix test/.icc-test.sh on MinGW.
7 years ago
Robin Mills
5f6ef65695
Update PROJECT_VERSION & add install() commands for CPack
...
- Version updated to 0.27.0.1.
- Release notes for MacOS-X Package, Linux, CYGWIN, win64 and msvc
- Redmine Release Notes Updated.
7 years ago
Luis Díaz Más
3976dbc0e7
CMake: Do not rename library outputs (dlls, pdbs, etc). Fixes a debugging issue with MSVC
7 years ago
Robin Mills
9c516116c8
Fix #401 by fixing iteration over exif data tags
7 years ago
Robin Mills
b3d077dcae
Fix #460 by adding more checks in CiffDirectory::readDirectory
7 years ago
Luis Díaz Más
670fb73dd5
Fix #457
7 years ago
Dan Čermák
962962a8e9
Port Iptc::printStructure & getUshort to slices API
...
This fixes #211 , #210 , #209
7 years ago
Dan Čermák
fec6535ae8
[binaryToString] Reimplement using Slices
...
- reimplement binaryToString:
- it now accepts a Slice and nothing else
- it does not return a std::string but instead a proxy object that implements
operator<< (this should be more efficient, as we do not need to touch the
heap in most cases)
- addapt unit tests
- replace all occurences with the new API
7 years ago
Dan Čermák
a48d0347b7
[binaryToString] Fixed overread when passing start > 0
...
binaryToString(DataBuf&) only calls the C-array version. Unfortunately, its
safety check is flawed, as it only works when start is 0 (probably due to its
conterintuitive interface).
binaryToString(byte*) formats the range (start,start+size) => we have to trimm
size if size + start is larger than the DataBuf's size_
7 years ago
Dan Čermák
bfd84ddf5a
[binaryToString] Improved ambiguous documentation
7 years ago
Dan Čermák
7a7ae7a1df
[image_int] Move internal functions into separate translation unit
7 years ago
Dan Čermák
98bca06592
Add Slices: views of STL containers & C-arrays and add unit tests
...
This commit adds a very simple implementation of std::span but with
mandatory range checks and only the most essential functionality.
7 years ago
Luis Díaz Más
97379dec1d
Add braces around try-catch block. Apply clang-format to the function.
7 years ago
Luis Díaz Más
4216dcd0c2
Fix cppcheck issues: knownConditionTrueFalse
7 years ago
Luis Díaz Más
ab35759de8
Fix cppcheck issues: unreachableCode
7 years ago
Luis Díaz Más
54ad1bc91a
Fix cppcheck issues: duplicateBreak
7 years ago
Luis Díaz Más
b118192f94
Fix cppcheck issues: redundantAssignment
7 years ago
Luis Díaz Más
c43d998457
Fix cppcheck issues: passedByValue
7 years ago