mirror of
https://github.com/openharmony/third_party_harfbuzz.git
synced 2026-07-01 10:04:31 -04:00
add CVE-2026-22693
Signed-off-by: ZacohZhen <kouzhenrong@h-partners.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh
|
||||
index eaba5d2..c73f990 100644
|
||||
--- a/src/hb-ot-cmap-table.hh
|
||||
+++ b/src/hb-ot-cmap-table.hh
|
||||
@@ -1683,6 +1683,10 @@ struct SubtableUnicodesCache {
|
||||
{
|
||||
SubtableUnicodesCache* cache =
|
||||
(SubtableUnicodesCache*) hb_malloc (sizeof(SubtableUnicodesCache));
|
||||
+
|
||||
+ if (unlikely(!cache))
|
||||
+ return nullptr;
|
||||
+
|
||||
new (cache) SubtableUnicodesCache (source_table);
|
||||
return cache;
|
||||
}
|
||||
+2
-1
@@ -53,7 +53,8 @@ def apply_patch(patch_file, target_dir):
|
||||
|
||||
def do_patch(target_dir):
|
||||
patch_file = [
|
||||
"huawei_harfbuzz.patch"
|
||||
"huawei_harfbuzz.patch",
|
||||
"CVE-2026-22693.patch"
|
||||
]
|
||||
|
||||
for patch in patch_file:
|
||||
|
||||
Reference in New Issue
Block a user