diff options
-rw-r--r-- | meta/recipes-graphics/harfbuzz/harfbuzz/0001-Fix-conditional.patch | 25 | ||||
-rw-r--r-- | meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb | 5 |
2 files changed, 28 insertions, 2 deletions
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Fix-conditional.patch b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Fix-conditional.patch new file mode 100644 index 0000000000..0f9b86973b --- /dev/null +++ b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Fix-conditional.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From e421613e8f825508afa9a0b54d33085557c37441 Mon Sep 17 00:00:00 2001 | ||
2 | From: Behdad Esfahbod <behdad@behdad.org> | ||
3 | Date: Wed, 1 Jun 2022 09:07:57 -0600 | ||
4 | Subject: [PATCH] [sbix] Fix conditional | ||
5 | |||
6 | Signed-off: Pavel Zhukov <pavel.zhukov@huawei.com> | ||
7 | Upstream-Status: Backport [e421613e8f825508afa9a0b54d33085557c37441] | ||
8 | |||
9 | --- | ||
10 | src/hb-ot-color-sbix-table.hh | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh | ||
14 | index 6efae43cda..d0e2235fb2 100644 | ||
15 | --- a/src/hb-ot-color-sbix-table.hh | ||
16 | +++ b/src/hb-ot-color-sbix-table.hh | ||
17 | @@ -298,7 +298,7 @@ struct sbix | ||
18 | |||
19 | const PNGHeader &png = *blob->as<PNGHeader>(); | ||
20 | |||
21 | - if (png.IHDR.height >= 65536 | png.IHDR.width >= 65536) | ||
22 | + if (png.IHDR.height >= 65536 || png.IHDR.width >= 65536) | ||
23 | { | ||
24 | hb_blob_destroy (blob); | ||
25 | return false; | ||
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb index 81518a53ea..b639c276db 100644 --- a/meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb +++ b/meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb | |||
@@ -11,8 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6ee0f16281694fb6aa689cca1e0fb3da \ | |||
11 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | 11 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" |
12 | UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar" | 12 | UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar" |
13 | 13 | ||
14 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz\ | 14 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \ |
15 | file://CVE-2022-33068.patch" | 15 | file://CVE-2022-33068.patch \ |
16 | file://0001-Fix-conditional.patch" | ||
16 | SRC_URI[sha256sum] = "98f68777272db6cd7a3d5152bac75083cd52a26176d87bc04c8b3929d33bce49" | 17 | SRC_URI[sha256sum] = "98f68777272db6cd7a3d5152bac75083cd52a26176d87bc04c8b3929d33bce49" |
17 | 18 | ||
18 | inherit meson pkgconfig lib_package gtk-doc gobject-introspection | 19 | inherit meson pkgconfig lib_package gtk-doc gobject-introspection |