Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 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 | |