]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 13:10:55 +0000 (08:10 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 13:10:55 +0000 (08:10 -0500)
MagickCore/memory.c
coders/gray.c

index 8a8556ba58f7d44912e57b643bf36b0a145a625e..4ef4386141424d4c26b6bc84aed377a535ef83b1 100644 (file)
@@ -478,7 +478,7 @@ MagickExport void *AcquireMagickMemory(const size_t size)
             i;
 
           assert(2*sizeof(size_t) > (size_t) (~SizeMask));
-          (void) ResetMagickMemory(&memory_pool,0,sizeof(memory_pool));
+          (void) memset(&memory_pool,0,sizeof(memory_pool));
           memory_pool.allocation=SegmentSize;
           memory_pool.blocks[MaxBlocks]=(void *) (-1);
           for (i=0; i < MaxSegments; i++)
@@ -614,7 +614,7 @@ MagickExport MemoryInfo *AcquireVirtualMemory(const size_t count,
     sizeof(*memory_info)));
   if (memory_info == (MemoryInfo *) NULL)
     ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
-  (void) ResetMagickMemory(memory_info,0,sizeof(*memory_info));
+  (void) memset(memory_info,0,sizeof(*memory_info));
   extent=count*quantum;
   memory_info->length=extent;
   memory_info->signature=MagickCoreSignature;
@@ -772,7 +772,7 @@ MagickExport void DestroyMagickMemory(void)
       (void) UnmapBlob(memory_pool.segments[i]->allocation,
         memory_pool.segments[i]->length);
   free_segments=(DataSegmentInfo *) NULL;
-  (void) ResetMagickMemory(&memory_pool,0,sizeof(memory_pool));
+  (void) memset(&memory_pool,0,sizeof(memory_pool));
   UnlockSemaphoreInfo(memory_semaphore);
   RelinquishSemaphoreInfo(&memory_semaphore);
 #endif
index 8d105ddebff173271a89fbf81b00200079d19877..8aedd64fccfe4e7a534c372210db2b71c8f1b70f 100644 (file)
@@ -211,7 +211,7 @@ static Image *ReadGRAYImage(const ImageInfo *image_info,
       default:
       {
         /*
-          No interlacing:  GRAYGRAYGRAYGRAYGRAYGRAY...
+          No interlacing:  GGG...
         */
         if (scene == 0)
           {
@@ -293,7 +293,7 @@ static Image *ReadGRAYImage(const ImageInfo *image_info,
           };
 
         /*
-          Line interlacing:  GGG...
+          Line interlacing:  G...G...G...
         */
         if (scene == 0)
           {
@@ -381,7 +381,7 @@ static Image *ReadGRAYImage(const ImageInfo *image_info,
       case PlaneInterlace:
       {
         /*
-          Plane interlacing:  GGG...
+          Plane interlacing:  G...G...G...
         */
         if (scene == 0)
           {
@@ -514,7 +514,7 @@ static Image *ReadGRAYImage(const ImageInfo *image_info,
       case PartitionInterlace:
       {
         /*
-          Partition interlacing:  GGG...
+          Partition interlacing:  G..., G..., G...
         */
         AppendImageFormat("R",image->filename);
         status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
@@ -1073,7 +1073,7 @@ static MagickBooleanType WriteGRAYImage(const ImageInfo *image_info,
       case LineInterlace:
       {
         /*
-          Line interlacing:  GGG...
+          Line interlacing:  G...G...G...
         */
         for (y=0; y < (ssize_t) image->rows; y++)
         {
@@ -1109,7 +1109,7 @@ static MagickBooleanType WriteGRAYImage(const ImageInfo *image_info,
       case PlaneInterlace:
       {
         /*
-          Plane interlacing:  GGG...
+          Plane interlacing:  G...G...G...
         */
         for (y=0; y < (ssize_t) image->rows; y++)
         {
@@ -1168,7 +1168,7 @@ static MagickBooleanType WriteGRAYImage(const ImageInfo *image_info,
       case PartitionInterlace:
       {
         /*
-          Partition interlacing:  GGG...
+          Partition interlacing:  G..., G..., G...
         */
         AppendImageFormat("G",image->filename);
         status=OpenBlob(image_info,image,scene == 0 ? WriteBinaryBlobMode :