exiv2/src
Luis Díaz Más 6964f5f9f2 DataBuf::c_data() returns nullptr when empty + avoid duplication
After the previous commit, I realized that std::vector::data() also
returns nullptr when the vector is empty. So I decided to emulate this
behavior in DataBuf::c_data().

Anyways, the changes done in the previous commit are valid and allow us
to avoid some processing when the DataBuf is empty.
2022-04-14 10:40:58 +02:00
..
basicio.cpp replace malloc/free with new/delete 2022-04-10 01:40:39 -07:00
bmffimage.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
bmpimage.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
canonmn_int.cpp structured binding conversions 2022-04-09 10:49:02 +02:00
canonmn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
casiomn_int.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
casiomn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
CMakeLists.txt Move Photoshopb class to internal namespace 2022-04-10 10:55:10 +02:00
convert.cpp structured binding conversions 2022-04-09 10:49:02 +02:00
cr2header_int.cpp clang-tidy: default member init 2022-04-10 01:40:39 -07:00
cr2header_int.hpp clang-tidy: default member init 2022-04-10 01:40:39 -07:00
cr2image.cpp clang-tidy: do not use using namespace 2022-04-01 16:38:04 -07:00
crwimage_int.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
crwimage_int.hpp clang-tidy: manual clang-tidy fixes 2022-04-10 01:40:39 -07:00
crwimage.cpp remove some unique_ptrs 2022-04-10 01:40:34 -07:00
datasets.cpp Fix issues on ARM builds (#2205) 2022-04-13 15:22:22 +02:00
doxygen.hpp.in Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
easyaccess.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
enforce.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
epsimage.cpp structured binding conversions 2022-04-09 10:49:02 +02:00
error.cpp clang-tidy: use default 2022-04-01 16:38:04 -07:00
exif.cpp Merge pull request #2177 from neheb/1 2022-04-06 14:53:33 +02:00
fff.h Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
fujimn_int.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
fujimn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
futils.cpp remove various usages of memset 2022-03-27 01:47:02 -07:00
gifimage.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
helper_functions.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
helper_functions.hpp Use SPDX for licenses (#2122) 2022-03-04 11:44:39 +01:00
http.cpp clang-tidy: add parentheses to macros 2022-04-09 12:19:38 -07:00
i18n.h Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
image_int.cpp Remove DataBuf::copyBytes and use std::copy instead 2022-03-23 17:17:29 +01:00
image_int.hpp clang-tidy: manual clang-tidy fixes 2022-04-10 01:40:39 -07:00
image.cpp Merge pull request #2197 from Exiv2/mainRefactoringFormats 2022-04-10 13:23:33 +02:00
ini.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
iptc.cpp static constexpr conversions 2022-03-26 14:33:09 -07:00
jp2image_int.cpp Fix out of bounds read in isValidBoxFileType() 2022-04-01 08:05:00 +02:00
jp2image_int.hpp JP2 - stronger checks on Signatuer and FileType boxes 2022-03-18 14:55:16 +01:00
jp2image.cpp Fix issues on ARM builds (#2205) 2022-04-13 15:22:22 +02:00
jpgimage.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
makernote_int.cpp algorithm conversions 2022-04-10 01:40:39 -07:00
makernote_int.hpp clang-tidy: default member init 2022-04-10 01:40:39 -07:00
metadatum.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
minoltamn_int.cpp find to std::find 2022-03-26 14:32:22 -07:00
minoltamn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
mrwimage.cpp Remove useless static_casts 2022-03-25 08:43:37 +01:00
nikonmn_int.cpp structured binding conversions 2022-04-09 10:49:02 +02:00
nikonmn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
olympusmn_int.cpp structured binding conversions 2022-04-09 10:49:02 +02:00
olympusmn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
orfimage_int.cpp clang-tidy: default member init 2022-04-10 01:40:39 -07:00
orfimage_int.hpp clang-tidy: default member init 2022-04-10 01:40:39 -07:00
orfimage.cpp clang-tidy: C array to std::array conversions 2022-03-18 13:19:45 +01:00
panasonicmn_int.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
panasonicmn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
pentaxmn_int.cpp find to std::find 2022-03-26 14:32:22 -07:00
pentaxmn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
pgfimage.cpp remove some unique_ptrs 2022-04-10 01:40:34 -07:00
photoshop.cpp Use .front() to avoid warning from static analysis 2022-04-10 10:55:14 +02:00
pngchunk_int.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
pngchunk_int.hpp clang-tidy: manual clang-tidy fixes 2022-04-10 01:40:39 -07:00
pngimage.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
preview.cpp Move Photoshopb class to internal namespace 2022-04-10 10:55:10 +02:00
private.h Update .clang-format to align pointers to the types 2022-04-01 07:55:07 +02:00
properties.cpp Fix issues on ARM builds (#2205) 2022-04-13 15:22:22 +02:00
psdimage.cpp Merge pull request #2197 from Exiv2/mainRefactoringFormats 2022-04-10 13:23:33 +02:00
rafimage.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
rw2image_int.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
rw2image_int.hpp delete 2022-03-29 20:54:12 -07:00
rw2image.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
safe_op.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
samsungmn_int.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
samsungmn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
sigmamn_int.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
sigmamn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
sonymn_int.cpp algorithm conversions 2022-04-10 01:40:39 -07:00
sonymn_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
tags_int.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
tags_int.hpp add constexpr constructor 2022-04-13 08:02:30 +02:00
tags.cpp Fix issues on ARM builds (#2205) 2022-04-13 15:22:22 +02:00
tgaimage.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
tiffcomposite_int.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
tiffcomposite_int.hpp clang-tidy: manual clang-tidy fixes 2022-04-10 01:40:39 -07:00
tifffwd_int.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
tiffimage_int.cpp remove some unique_ptrs 2022-04-10 01:40:34 -07:00
tiffimage_int.hpp clang-tidy: manual clang-tidy fixes 2022-04-10 01:40:39 -07:00
tiffimage.cpp find to std::find 2022-03-26 14:32:22 -07:00
tiffvisitor_int.cpp Move Photoshopb class to internal namespace 2022-04-10 10:55:10 +02:00
tiffvisitor_int.hpp remove unused class declarations 2022-04-12 08:47:54 +02:00
TODO typo (GNU compliant) 2010-04-20 09:01:57 +00:00
types.cpp DataBuf::c_data() returns nullptr when empty + avoid duplication 2022-04-14 10:40:58 +02:00
tzfile.h Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
utils.cpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
utils.hpp Update .clang-format file & apply clang-format to whole project 2022-03-16 22:30:53 +01:00
value.cpp structured binding conversions 2022-04-09 10:49:02 +02:00
version.cpp try to actually fix null pointer deref 2022-04-09 12:20:18 -07:00
webpimage.cpp Fixing bad usages of DataBuf (when it is empty) 2022-04-14 10:40:58 +02:00
xmp.cpp clang-tidy: use nullptr 2022-04-10 01:40:39 -07:00
xmpsidecar.cpp remove some unique_ptrs 2022-04-10 01:40:34 -07:00