summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/14-image-surface-oob-read.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /gfx/cairo/14-image-surface-oob-read.patch
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/cairo/14-image-surface-oob-read.patch')
-rw-r--r--gfx/cairo/14-image-surface-oob-read.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/gfx/cairo/14-image-surface-oob-read.patch b/gfx/cairo/14-image-surface-oob-read.patch
deleted file mode 100644
index 6aa4c1b678..0000000000
--- a/gfx/cairo/14-image-surface-oob-read.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/gfx/cairo/cairo/src/cairo-quartz-surface.c b/gfx/cairo/cairo/src/cairo-quartz-surface.c
---- a/gfx/cairo/cairo/src/cairo-quartz-surface.c
-+++ b/gfx/cairo/cairo/src/cairo-quartz-surface.c
-@@ -873,8 +873,12 @@ static cairo_status_t
- return _cairo_error (CAIRO_STATUS_NO_MEMORY);
- }
-
-+ // The last row of data may have less than stride bytes so make sure we
-+ // only copy the minimum amount required from that row.
- memcpy (image_data, image_surface->data,
-- image_surface->height * image_surface->stride);
-+ (image_surface->height - 1) * image_surface->stride +
-+ cairo_format_stride_for_width (image_surface->format,
-+ image_surface->width));
- *image_out = CairoQuartzCreateCGImage (image_surface->format,
- image_surface->width,
- image_surface->height,