Skip to content

Commit

Permalink
fix short reallocation @ ImageMagick/ImageMagick#5553
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 10, 2022
1 parent c5fb867 commit d4f33aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/blob.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ MagickExport unsigned char *FileToBlob(const char *filename,const size_t extent,
blob=(unsigned char *) RelinquishMagickMemory(blob);
break;
}
blob=(unsigned char *) ResizeQuantumMemory(blob,i+quantum+1,
blob=(unsigned char *) ResizeQuantumMemory(blob,i+count+quantum+1,
sizeof(*blob));
if ((size_t) (i+count) >= extent)
break;
Expand Down

0 comments on commit d4f33aa

Please sign in to comment.