Files
third_party_libpng/CVE-2026-25646.patch
T
gcw_5Q40SBlf 2e25a85394 new: 新建文件 CVE-2026-25646.patch
Signed-off-by: gcw_5Q40SBlf <guokuan1@h-partners.com>
2026-02-25 14:34:05 +08:00

19 lines
575 B
Diff

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