Skip to content

Commit

Permalink
Added missing return to avoid use after free.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Lemstra committed Nov 18, 2017
1 parent 91f238c commit 8c35502
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Magick++/lib/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5087,6 +5087,7 @@ void Magick::Image::read(MagickCore::Image *image,
if (!quiet())
throwExceptionExplicit(MagickCore::ImageWarning,
"No image was loaded.");
return;
}
ThrowImageException;
}
Expand Down

0 comments on commit 8c35502

Please sign in to comment.