diff options
Diffstat (limited to 'meta/recipes-multimedia/libtiff/tiff/CVE-2025-8176-0002.patch')
-rw-r--r-- | meta/recipes-multimedia/libtiff/tiff/CVE-2025-8176-0002.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2025-8176-0002.patch b/meta/recipes-multimedia/libtiff/tiff/CVE-2025-8176-0002.patch new file mode 100644 index 0000000000..c28969e1d8 --- /dev/null +++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2025-8176-0002.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From ce46f002eca4148497363f80fab33f9396bcbeda Mon Sep 17 00:00:00 2001 | ||
2 | From: Lee Howard <faxguy@howardsilvan.com> | ||
3 | Date: Sat, 24 May 2025 21:25:16 -0700 | ||
4 | Subject: [PATCH] Fix tiffmedian bug #707 | ||
5 | |||
6 | CVE: CVE-2025-8176 | ||
7 | Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/commit/ce46f002eca4148497363f80fab33f9396bcbeda] | ||
8 | |||
9 | Signed-off-by: Yogita Urade <yogita.urade@windriver.com> | ||
10 | --- | ||
11 | tools/tiffmedian.c | 5 ++++- | ||
12 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/tools/tiffmedian.c b/tools/tiffmedian.c | ||
15 | index 93e57cf..a0b4b5d 100644 | ||
16 | --- a/tools/tiffmedian.c | ||
17 | +++ b/tools/tiffmedian.c | ||
18 | @@ -385,7 +385,10 @@ get_histogram(TIFF* in, Colorbox* box) | ||
19 | } | ||
20 | for (i = 0; i < imagelength; i++) { | ||
21 | if (TIFFReadScanline(in, inputline, i, 0) <= 0) | ||
22 | - break; | ||
23 | + { | ||
24 | + fprintf(stderr, "Error reading scanline\n"); | ||
25 | + exit(EXIT_FAILURE); | ||
26 | + } | ||
27 | inptr = inputline; | ||
28 | for (j = imagewidth; j-- > 0;) { | ||
29 | red = (*inptr++) & 0xff >> COLOR_SHIFT; | ||
30 | -- | ||
31 | 2.40.0 | ||