summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/cff-font-creation.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /gfx/cairo/cff-font-creation.patch
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/cairo/cff-font-creation.patch')
-rw-r--r--gfx/cairo/cff-font-creation.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/cairo/cff-font-creation.patch b/gfx/cairo/cff-font-creation.patch
new file mode 100644
index 0000000000..1ee5398b0c
--- /dev/null
+++ b/gfx/cairo/cff-font-creation.patch
@@ -0,0 +1,12 @@
+diff --git a/gfx/cairo/cairo/src/cairo-cff-subset.c b/gfx/cairo/cairo/src/cairo-cff-subset.c
+--- a/gfx/cairo/cairo/src/cairo-cff-subset.c
++++ b/gfx/cairo/cairo/src/cairo-cff-subset.c
+@@ -3154,7 +3154,7 @@ static cairo_int_status_t
+ cairo_status_t status;
+ cairo_cff_font_t *font;
+
+- font = _cairo_malloc (sizeof (cairo_cff_font_t));
++ font = calloc (1, sizeof (cairo_cff_font_t));
+ if (unlikely (font == NULL))
+ return _cairo_error (CAIRO_STATUS_NO_MEMORY);
+