Skip to content

Commit

Permalink
check exception signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 11, 2022
1 parent 0471b6b commit 1ef09ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magick/blob.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ MagickExport unsigned char *FileToBlob(const char *filename,const size_t extent,

assert(filename != (const char *) NULL);
assert(exception != (ExceptionInfo *) NULL);
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickCoreSignature);
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",filename);
*length=0;
Expand Down Expand Up @@ -1728,6 +1728,7 @@ MagickExport unsigned char *ImageToBlob(const ImageInfo *image_info,
assert(image != (Image *) NULL);
assert(image->signature == MagickCoreSignature);
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickCoreSignature);
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
Expand Down

0 comments on commit 1ef09ad

Please sign in to comment.