Permalink
Browse files

Make sure "image" is initialized to prevent error on releasing.

  • Loading branch information...
fancycode committed Sep 5, 2018
1 parent 30eb8df commit 3245495dba683bea92451d8c118a3f1322fcf21d
Showing with 1 addition and 1 deletion.
  1. +1 −1 libheif/encoder_fuzzer.cc
@@ -144,7 +144,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
heif_encoder_set_lossy_quality(encoder, quality);
heif_encoder_set_lossless(encoder, lossless);
struct heif_image* image;
struct heif_image* image = nullptr;
size_t read = create_image(data, size, &image);
assert(read <= size);
if (!read) {

0 comments on commit 3245495

Please sign in to comment.