diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-12-05 09:53:49 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 22:55:50 +0000 |
commit | 2b32e0fd6e6d892552636b452ef1e7a8d3fb587f (patch) | |
tree | fe18ea169e4944b5c838d56f248987d9fa3b3c48 /meta/recipes-multimedia/libtiff/tiff/CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch | |
parent | 959b1f7de437db9156da11fb799a3c2f4e9082dc (diff) | |
download | poky-2b32e0fd6e6d892552636b452ef1e7a8d3fb587f.tar.gz |
tiff: Backport fixes for CVE-2023-6277
(From OE-Core rev: d115e17ad7775cf5bbfd402e98e61f362ac96efa)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/libtiff/tiff/CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch')
-rw-r--r-- | meta/recipes-multimedia/libtiff/tiff/CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch new file mode 100644 index 0000000000..5d15dff1d9 --- /dev/null +++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From e1640519208121f916da1772a5efb6ca28971b86 Mon Sep 17 00:00:00 2001 | ||
2 | From: Even Rouault <even.rouault@spatialys.com> | ||
3 | Date: Tue, 31 Oct 2023 15:04:37 +0000 | ||
4 | Subject: [PATCH 3/3] Apply 1 suggestion(s) to 1 file(s) | ||
5 | |||
6 | CVE: CVE-2023-6277 | ||
7 | Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/merge_requests/545] | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | libtiff/tif_dirread.c | 1 - | ||
11 | 1 file changed, 1 deletion(-) | ||
12 | |||
13 | diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c | ||
14 | index fe8d6f8..58a4276 100644 | ||
15 | --- a/libtiff/tif_dirread.c | ||
16 | +++ b/libtiff/tif_dirread.c | ||
17 | @@ -5306,7 +5306,6 @@ static int EstimateStripByteCounts(TIFF *tif, TIFFDirEntry *dir, | ||
18 | { | ||
19 | uint64_t space; | ||
20 | uint16_t n; | ||
21 | - filesize = TIFFGetFileSize(tif); | ||
22 | if (!(tif->tif_flags & TIFF_BIGTIFF)) | ||
23 | space = sizeof(TIFFHeaderClassic) + 2 + dircount * 12 + 4; | ||
24 | else | ||
25 | -- | ||
26 | 2.43.0 | ||
27 | |||