Commit 449ab3750 for imagemagick.org
commit 449ab37508557e18829c6ff027ae7c04eefa7f27
Author: Cristy <urban-warrior@imagemagick.org>
Date: Mon Nov 16 18:10:04 2026 -0500
match the logic of IsPixelMonochrome()
diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h
index edee926f3..974dbdbe6 100644
--- a/MagickCore/pixel-accessor.h
+++ b/MagickCore/pixel-accessor.h
@@ -25,9 +25,6 @@
#include "MagickCore/gem.h"
#include "MagickCore/image.h"
#include "MagickCore/memory_.h"
-#include <errno.h>
-#include <math.h>
-#include <string.h>
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
@@ -448,7 +445,7 @@ static inline PixelTrait GetPixelRedTraits(const Image *magick_restrict image)
static inline void GetPixelInfoPixel(const Image *magick_restrict image,
const Quantum *magick_restrict pixel,PixelInfo *magick_restrict pixel_info)
{
- (void) memset(pixel_info,0,sizeof(*pixel_info));
+ (void) ResetMagickMemory(pixel_info,0,sizeof(*pixel_info));
pixel_info->storage_class=DirectClass;
pixel_info->colorspace=sRGBColorspace;
pixel_info->depth=MAGICKCORE_QUANTUM_DEPTH;