new: 新建文件 CVE-2026-25646.patch

Signed-off-by: gcw_5Q40SBlf <guokuan1@h-partners.com>
This commit is contained in:
gcw_5Q40SBlf
2026-02-25 14:34:05 +08:00
parent 848d11592a
commit 2e25a85394
+18
View File
@@ -0,0 +1,18 @@
diff --git a/pngrtran.c b/pngrtran.c
index 7002044..c631164 100644
--- a/pngrtran.c
+++ b/pngrtran.c
@@ -651,8 +651,8 @@ png_set_quantize(png_structrp png_ptr, png_colorp palette,
break;
t->next = hash[d];
- t->left = (png_byte)i;
- t->right = (png_byte)j;
+ t->left = png_ptr->palette_to_index[i];
+ t->right = png_ptr->palette_to_index[j];
hash[d] = t;
}
}
--
2.1.4