mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
harfbuzz: fix CVE-2022-33068
Backport patch from
62e803b361
The 'tff' file in upstream patch is for testing only which cause error during do_patch so need be dropped.
File test/fuzzing/fonts/sbix-extents.ttf: git binary diffs are not supported.
(From OE-Core rev: 537e7d323f57a0484c279c3b52ad5bb45eb44a10)
Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b7a414eaf0
commit
917569e54b
35
meta/recipes-graphics/harfbuzz/harfbuzz/CVE-2022-33068.patch
Normal file
35
meta/recipes-graphics/harfbuzz/harfbuzz/CVE-2022-33068.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
From 62e803b36173fd096d7ad460dd1d1db9be542593 Mon Sep 17 00:00:00 2001
|
||||
From: Behdad Esfahbod <behdad@behdad.org>
|
||||
Date: Wed, 1 Jun 2022 07:38:21 -0600
|
||||
Subject: [PATCH] [sbix] Limit glyph extents
|
||||
|
||||
Fixes https://github.com/harfbuzz/harfbuzz/issues/3557
|
||||
|
||||
Upstream-Status: Backport [https://github.com/harfbuzz/harfbuzz/commit/62e803b36173fd096d7ad460dd1d1db9be542593]
|
||||
CVE:CVE-2022-33068
|
||||
Signed-off-by: Wentao Zhang<Wentao.Zhang@windriver.com>
|
||||
|
||||
---
|
||||
src/hb-ot-color-sbix-table.hh | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh
|
||||
index 9741ebd45..6efae43cd 100644
|
||||
--- a/src/hb-ot-color-sbix-table.hh
|
||||
+++ b/src/hb-ot-color-sbix-table.hh
|
||||
@@ -298,6 +298,12 @@ struct sbix
|
||||
|
||||
const PNGHeader &png = *blob->as<PNGHeader>();
|
||||
|
||||
+ if (png.IHDR.height >= 65536 | png.IHDR.width >= 65536)
|
||||
+ {
|
||||
+ hb_blob_destroy (blob);
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
extents->x_bearing = x_offset;
|
||||
extents->y_bearing = png.IHDR.height + y_offset;
|
||||
extents->width = png.IHDR.width;
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -11,7 +11,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6ee0f16281694fb6aa689cca1e0fb3da \
|
||||
UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
|
||||
UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar"
|
||||
|
||||
SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz"
|
||||
SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz\
|
||||
file://CVE-2022-33068.patch"
|
||||
SRC_URI[sha256sum] = "98f68777272db6cd7a3d5152bac75083cd52a26176d87bc04c8b3929d33bce49"
|
||||
|
||||
inherit meson pkgconfig lib_package gtk-doc gobject-introspection
|
||||
|
||||
Reference in New Issue
Block a user