Skip to content

Commit

Permalink
Merge pull request #2663 from kevinbackhouse/fuzz-metadatum-print-nul…
Browse files Browse the repository at this point in the history
…lptr

Fuzz Metadata::print() with nullptr parameter
  • Loading branch information
kevinbackhouse committed Jun 30, 2023
2 parents e4a4791 + 469c76c commit 9215f74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fuzz/fuzz-read-print-write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {

image->readMetadata();
for (auto& md : image->exifData()) {
md.print();
md.print(&image->exifData());
}
for (auto& md : image->iptcData()) {
md.print();
md.print(&image->exifData());
}
for (auto& md : image->xmpData()) {
md.print();
md.print(&image->exifData());
}

Expand Down

0 comments on commit 9215f74

Please sign in to comment.