Commit b8d345917 for imagemagick.org

commit b8d345917785c7787756cfb998799a8373313cfe
Author: Cristy <mikayla-grace@urban-warrior.org>
Date:   Sun Oct 18 11:56:59 2020 -0400

    ...

diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c
index 045ec10ad..57b879436 100644
--- a/MagickCore/statistic.c
+++ b/MagickCore/statistic.c
@@ -2238,8 +2238,12 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image,
   }
   median_info=AcquireVirtualMemory(image->columns,image->rows*sizeof(*median));
   if (median_info == (MemoryInfo *) NULL)
-    (void) ThrowMagickException(exception,GetMagickModule(),
-      ResourceLimitError,"MemoryAllocationFailed","`%s'",image->filename);
+    {
+      for (i=0; i <= (ssize_t) MaxPixelChannels; i++)
+        channel_statistics[i].median=sqrt((double) -1.0);
+      (void) ThrowMagickException(exception,GetMagickModule(),
+        ResourceLimitError,"MemoryAllocationFailed","`%s'",image->filename);
+    }
   else
     {
       ssize_t