Fix build failure.
This commit is contained in:
parent
e41f0c2cce
commit
61a14c45d1
@ -17,7 +17,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t * data, size_t size) {
|
||||
try {
|
||||
Exiv2::DataBuf data_copy(data, size);
|
||||
Exiv2::Image::UniquePtr image =
|
||||
Exiv2::ImageFactory::open(data_copy.pData_, size);
|
||||
Exiv2::ImageFactory::open(data_copy.c_data(0), size);
|
||||
assert(image.get() != 0);
|
||||
|
||||
image->readMetadata();
|
||||
|
||||
@ -489,7 +489,7 @@ namespace Exiv2 {
|
||||
|
||||
DataBuf arr;
|
||||
do {
|
||||
arr.alloc(compressedLen);
|
||||
arr.resize(compressedLen);
|
||||
zlibResult = compress2(arr.data(0), &compressedLen, reinterpret_cast<const Bytef*>(text.data()),
|
||||
static_cast<uLong>(text.size()), Z_BEST_COMPRESSION);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user