Luis Díaz Más
0bbaa6eff3
cpp: Replace auto_ptr by unique_ptr
2021-04-15 06:56:11 +02:00
Luis Díaz Más
537cdad99e
Remove deprecated EPS format
2021-04-15 06:56:11 +02:00
Robin Mills
d632988bbd
Massive code prolog cleanup.
2021-03-17 13:34:21 +00:00
Miloš Komarčević
0da1a50afe
Revert style changes
2021-03-08 18:18:17 +01:00
Miloš Komarčević
e09d093ccf
Minor whitespace formatting
2021-03-08 11:58:06 +01:00
Peter Kovář
f0a321dedb
[WIP] Base Media File Format
2021-02-16 10:10:00 +01:00
Robin Mills
0844e1bbfb
Rename class ISOBMFF => class bmffImage to match other image handlers. Removed C++11 style code. Removed unused code.
2021-01-25 16:15:55 +00:00
Robin Mills
460a802671
Fix image handler to give jp2image code higher priority than the next isobmff code.
2021-01-24 22:20:42 +00:00
Peter Kovář
92469f4c27
[WIP] Add ISO/IEC Base Media File Format
2021-01-24 15:09:57 +01:00
clanmills
48afa7548d
fix_1329_remove_bigtiff_0.27
2020-09-28 07:43:06 +01:00
tbeu
f61fa2ed9d
Fix write ability flags of PSD files ( #1260 )
2020-08-10 20:08:12 +02:00
clanmills
d07a1f94f8
fix_547_0.27
2020-05-19 16:13:37 +01:00
clanmills
cc1a6033db
fix_1045_0.27
2020-04-06 12:56:43 +01:00
clanmills
18ed65a25f
fix_Sony2010e_0.27 Thanks to @sridharb1
2020-03-29 17:55:37 +01:00
Robin Mills
43683f1eff
Fix #531
2018-12-09 18:54:40 +01:00
Luis Díaz Más
ae49250942
Check in Image::printIFDStructure if seek and reads are OK
2018-11-06 14:40:36 +01:00
Dan Čermák
962962a8e9
Port Iptc::printStructure & getUshort to slices API
...
This fixes #211 , #210 , #209
2018-10-11 14:06:16 +02:00
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
2018-10-11 14:06:16 +02:00
Dan Čermák
7a7ae7a1df
[image_int] Move internal functions into separate translation unit
2018-10-11 14:06:16 +02:00
Luis Díaz Más
54ad1bc91a
Fix cppcheck issues: duplicateBreak
2018-10-11 13:40:03 +02:00
Luis Díaz Más
603692a1d8
Copyright to Exiv2 authors
2018-09-12 19:22:31 +02:00
Dan Čermák
7d9ed33bde
Initialize DataBuf with 0s => fix valgrind error
2018-08-30 16:26:56 +02:00
Dan Čermák
607b19111c
[DataBuf] Replace wrong usage of release() with free()
2018-07-28 23:50:33 +02:00
Dan Čermák
efe2ccdcb6
Replaced all hardcoded error codes with ker... constants
2018-02-18 09:28:57 +01:00
tbeu
5b5987a596
Remove obsolete EXIV2_RCSID
2017-11-19 11:17:12 +01:00
tbeu
5df8b01b77
Remove obsolete svn revision
2017-11-19 11:17:11 +01:00
Luis Díaz Más
87a83c89d5
Merge branch 'master' into stringFormat_update
2017-11-12 10:21:33 +01:00
Dan Čermák
36df4bc997
Fixed potential out of bounds file access
...
This commit adds a out-of-bounds protection in the case that the
extracted values for offset & count are summed up larger than the size
of the file. Also this function checks for overflows before performing
the addition.
This fixes #159
2017-11-10 15:12:55 +01:00
Dan Čermák
cfa5073a2c
Added short explanation to internal function stringFormat
2017-11-09 20:38:11 +01:00
Dan Čermák
06cafadf4f
Added assertion that call to vsnprintf succeeds
2017-11-09 20:38:11 +01:00
tbeu
c0ea5f4fba
Rewrite the reallocation the C++ way
...
* Fix handling of the return value of vsnprintf
* In C++11 we could use buffer.data instead of &buffer[0]
2017-11-04 21:01:36 +01:00
Michał Walenciak
7e90668011
Adding comment for issue #56
2017-10-02 21:45:05 +02:00
Robin Mills
2f0104879a
Merge pull request #81 from piponazo/robinChanges
...
Robin changes
2017-09-29 10:15:21 +01:00
Luis Díaz Más
8ad49f6d73
Robin changes in sync with master changes
2017-09-28 19:42:57 +02:00
Dan Čermák
74cb5bab13
Fixed wrong brackets: size*count + pad can overflow before the cast
...
=> Should fix #76 (most of the work has been done by Robin Mills in
6e3855aed7 )
The problem with #76 is the contents of the 26th IFD, with the
following contents:
tag: 0x8649
type: 0x1
count: 0xffff ffff
offset: 0x4974
The issue is the size of count (uint32_t), as adding anything to it
causes an overflow. Especially the expression:
(size*count + pad+20)
results in an overflow and gives 20 as a result instead of
0x100000014, thus the condition in the if in the next line is false
and the program continues to run (until it crashes at io.read).
To properly account for the overflow, the brackets have to be removed,
as then the result is saved in the correctly sized type and not cast
after being calculated in the smaller type.
The brackets have also been removed from bigtiffimage.cpp, where the
same issue is present.
2017-09-27 23:38:49 +02:00
Robin Mills
d8ae4484ae
msvc support for bigtiffimage.cpp
2017-09-27 12:24:41 +01:00
clanmills
6e3855aed7
Fix https://github.com/Exiv2/exiv2/issues/55
2017-09-27 09:20:13 +01:00
Michał Walenciak
9acc1c56a7
adding ifd8 and long longs to is8ByteType()
2017-09-24 16:07:26 +02:00
Michał Walenciak
b6e79357de
Adding 8-byte swap functions + consts
2017-09-21 18:15:12 +02:00
Michał Walenciak
5ab1a0809d
adopt to style
2017-09-21 18:15:12 +02:00
Michał Walenciak
c008ad2403
making tag related functions private
2017-09-21 18:15:12 +02:00
Michał Walenciak
bc6eed0b03
registering new file type
2017-09-21 18:15:12 +02:00
clanmills
21ac4ac61a
Test suite changes due to https://github.com/Exiv2/exiv2/pull/68
2017-09-19 10:17:46 +01:00
Michał Walenciak
dff941ad7f
Do not print offset when it is used as tag's value
2017-09-18 22:32:52 +02:00
clanmills
d366943297
Refactoring EXV_USE_CURL and EXV_USE_SSH
2017-09-13 16:54:10 +01:00
Michał Walenciak
20582a93c6
Marking members in a proper way.
2017-09-02 08:02:00 +02:00
Michał Walenciak
4e25435afb
Changing return type of Image::tagName to std::string
2017-09-02 08:00:07 +02:00
Michał Walenciak
ddb87fe0cf
Moving static tagName() into Image class to prevent multithread crashes.
...
static variables inside of tagName() were not protected against multithread access.
It could cause a crash in case of simultaneous initialization of map of tags.
2017-09-01 18:29:51 +02:00
clanmills
d3c2b99385
#1297 Fix submitted.
2017-06-11 11:56:20 +01:00
Robin Mills
77616c3204
#1289 Thanks to Asdiel (AlienSkin) for reporting this and providing a test file. Thanks to Ben for investigation and patch.
2017-04-14 19:42:53 +00:00