mirror of
https://github.com/openharmony/third_party_libpng.git
synced 2026-07-01 09:25:04 -04:00
new: 新建文件 CVE-2026-25646.patch
Signed-off-by: gcw_5Q40SBlf <guokuan1@h-partners.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user