Skip to content

Commit

Permalink
Fix build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Aug 29, 2021
1 parent e41f0c2 commit 61a14c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuzz/fuzz-read-print-write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/pngchunk_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 61a14c4

Please sign in to comment.