File libheif-CVE-2025-68431.patch of Package libheif.42113

Index: libheif-1.12.0/libheif/heif_image.cc
===================================================================
--- libheif-1.12.0.orig/libheif/heif_image.cc
+++ libheif-1.12.0/libheif/heif_image.cc
@@ -899,7 +899,7 @@ Error HeifPixelImage::overlay(std::share
       if (!has_alpha) {
         memcpy(out_p + out_x0 + (out_y0 + y - in_y0) * out_stride,
                in_p + in_x0 + y * in_stride,
-               in_w - in_x0);
+               in_w);
       }
       else {
         for (uint32_t x = in_x0; x < in_w; x++) {
openSUSE Build Service is sponsored by