Commit 36289ea55 for imagemagick.org

commit 36289ea55a5a05946f31afa57374359c42dbca04
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Sat Nov 14 13:29:52 2026 +0100

    Correct allocation of number of threads (GHSA-wp55-fj9p-xx9q)

diff --git a/MagickWand/wand-view.c b/MagickWand/wand-view.c
index 071e9efbb..c524b5aff 100644
--- a/MagickWand/wand-view.c
+++ b/MagickWand/wand-view.c
@@ -723,7 +723,7 @@ static PixelWand ***AcquirePixelsTLS(const size_t number_wands)
   ssize_t
     i;

-  number_threads=GetOpenMPMaximumThreads();
+  number_threads=(size_t) GetMagickResourceLimit(ThreadResource);
   pixel_wands=(PixelWand ***) AcquireQuantumMemory(number_threads,
     sizeof(*pixel_wands));
   if (pixel_wands == (PixelWand ***) NULL)