add CVE-2026-22693

Signed-off-by: ZacohZhen <kouzhenrong@h-partners.com>
This commit is contained in:
ZacohZhe
2026-02-09 16:50:59 +08:00
parent dd003db6b7
commit 49ce9c2893
2 changed files with 17 additions and 1 deletions
+15
View File
@@ -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
View File
@@ -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: