| From e1640519208121f916da1772a5efb6ca28971b86 Mon Sep 17 00:00:00 2001 |
| From: Even Rouault <even.rouault@spatialys.com> |
| Date: Tue, 31 Oct 2023 15:04:37 +0000 |
| Subject: [PATCH 3/3] Apply 1 suggestion(s) to 1 file(s) |
| |
| CVE: CVE-2023-6277 |
| Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/merge_requests/545] |
| Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| --- |
| libtiff/tif_dirread.c | 1 - |
| 1 file changed, 1 deletion(-) |
| |
| diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c |
| index fe8d6f8..58a4276 100644 |
| --- a/libtiff/tif_dirread.c |
| +++ b/libtiff/tif_dirread.c |
| @@ -5306,7 +5306,6 @@ static int EstimateStripByteCounts(TIFF *tif, TIFFDirEntry *dir, |
| { |
| uint64_t space; |
| uint16_t n; |
| - filesize = TIFFGetFileSize(tif); |
| if (!(tif->tif_flags & TIFF_BIGTIFF)) |
| space = sizeof(TIFFHeaderClassic) + 2 + dircount * 12 + 4; |
| else |
| -- |
| 2.43.0 |
| |