Commit cd365da1 for libheif

commit cd365da1626fc1fefdce946194f9b378807d2bc2
Author: Dirk Farin <dirk.farin@gmail.com>
Date:   Mon Aug 24 00:05:34 2026 +0200

    compare actual alpha size instead of declared size (GHSA-2jg2-4ch7-h545, F02)

diff --git a/libheif/image-items/image_item.cc b/libheif/image-items/image_item.cc
index db31203e..276034bc 100644
--- a/libheif/image-items/image_item.cc
+++ b/libheif/image-items/image_item.cc
@@ -1065,7 +1065,7 @@ Result<std::shared_ptr<HeifPixelImage>> ImageItem::decode_image(const heif_decod
     //       It might also be that a specific output format implies that alpha is scaled (RGBA32). That would favor an enum for the scaling filter option + a bool to switch auto-filtering on.
     //       But we can only do this when libheif itself doesn't assume anymore that the alpha channel has the same resolution.

-    if ((alpha_image->get_width() != img->get_width()) || (alpha_image->get_height() != img->get_height())) {
+    if ((alpha->get_width() != img->get_width()) || (alpha->get_height() != img->get_height())) {
       std::shared_ptr<HeifPixelImage> scaled_alpha;
       Error err = alpha->scale_nearest_neighbor(scaled_alpha, img->get_width(), img->get_height(), m_heif_context->get_security_limits());
       if (err) {