Skip to content

Commit 8c35502

Browse files
author
Dirk Lemstra
committed
Added missing return to avoid use after free.
1 parent 91f238c commit 8c35502

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: Magick++/lib/Image.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -5087,6 +5087,7 @@ void Magick::Image::read(MagickCore::Image *image,
50875087
if (!quiet())
50885088
throwExceptionExplicit(MagickCore::ImageWarning,
50895089
"No image was loaded.");
5090+
return;
50905091
}
50915092
ThrowImageException;
50925093
}

0 commit comments

Comments
 (0)