diff options
| -rw-r--r-- | meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch | 33 | ||||
| -rw-r--r-- | meta/recipes-graphics/freetype/freetype_2.13.2.bb | 4 |
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch b/meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch new file mode 100644 index 0000000000..0882b01498 --- /dev/null +++ b/meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 73720c7c9958e87b3d134a7574d1720ad2d24442 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexei Podtelezhnikov <apodtele@gmail.com> | ||
| 3 | Date: Sun, 23 Jun 2024 10:58:00 -0400 | ||
| 4 | Subject: [PATCH] * src/truetype/ttgload.c (load_truetype_glyph): Unsigned fix. | ||
| 5 | |||
| 6 | CVE: CVE-2025-27363 | ||
| 7 | Upstream-Status: Backport [https://gitlab.freedesktop.org/freetype/freetype/-/commit/73720c7c9958e87b3d134a7574d1720ad2d24442] | ||
| 8 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 9 | --- | ||
| 10 | src/truetype/ttgload.c | 4 ++-- | ||
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c | ||
| 14 | index 8cddc394c..b656ccf04 100644 | ||
| 15 | --- a/src/truetype/ttgload.c | ||
| 16 | +++ b/src/truetype/ttgload.c | ||
| 17 | @@ -1741,14 +1741,14 @@ | ||
| 18 | if ( FT_IS_NAMED_INSTANCE( FT_FACE( face ) ) || | ||
| 19 | FT_IS_VARIATION( FT_FACE( face ) ) ) | ||
| 20 | { | ||
| 21 | - short i, limit; | ||
| 22 | + FT_UShort i, limit; | ||
| 23 | FT_SubGlyph subglyph; | ||
| 24 | |||
| 25 | FT_Outline outline = { 0, 0, NULL, NULL, NULL, 0 }; | ||
| 26 | FT_Vector* unrounded = NULL; | ||
| 27 | |||
| 28 | |||
| 29 | - limit = (short)gloader->current.num_subglyphs; | ||
| 30 | + limit = (FT_UShort)gloader->current.num_subglyphs; | ||
| 31 | |||
| 32 | /* construct an outline structure for */ | ||
| 33 | /* communication with `TT_Vary_Apply_Glyph_Deltas' */ | ||
diff --git a/meta/recipes-graphics/freetype/freetype_2.13.2.bb b/meta/recipes-graphics/freetype/freetype_2.13.2.bb index 4e7a0ad160..ce7a615a3c 100644 --- a/meta/recipes-graphics/freetype/freetype_2.13.2.bb +++ b/meta/recipes-graphics/freetype/freetype_2.13.2.bb | |||
| @@ -13,7 +13,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=843b6efc16f6b1652ec97f89d5a516c0 \ | |||
| 13 | file://docs/GPLv2.TXT;md5=8ef380476f642c20ebf40fecb0add2ec \ | 13 | file://docs/GPLv2.TXT;md5=8ef380476f642c20ebf40fecb0add2ec \ |
| 14 | " | 14 | " |
| 15 | 15 | ||
| 16 | SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/${BPN}/${BP}.tar.xz" | 16 | SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/${BPN}/${BP}.tar.xz \ |
| 17 | file://CVE-2025-27363.patch \ | ||
| 18 | " | ||
| 17 | SRC_URI[sha256sum] = "12991c4e55c506dd7f9b765933e62fd2be2e06d421505d7950a132e4f1bb484d" | 19 | SRC_URI[sha256sum] = "12991c4e55c506dd7f9b765933e62fd2be2e06d421505d7950a132e4f1bb484d" |
| 18 | 20 | ||
| 19 | UPSTREAM_CHECK_REGEX = "freetype-(?P<pver>\d+(\.\d+)+)" | 21 | UPSTREAM_CHECK_REGEX = "freetype-(?P<pver>\d+(\.\d+)+)" |
