summaryrefslogtreecommitdiff
path: root/media-libs/tiff/files/tiff-4.5.0-CVE-2022-48281.patch
blob: e38d17df9cc274e90e3dae54af69636d35be95e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
https://gitlab.com/libtiff/libtiff/-/issues/488
https://bugs.gentoo.org/891839
--- a/tools/tiffcrop.c
+++ b/tools/tiffcrop.c
@@ -8591,7 +8591,7 @@ static int processCropSelections(struct
                     cropsize + NUM_BUFF_OVERSIZE_BYTES);
             else
             {
-                prev_cropsize = seg_buffs[0].size;
+                prev_cropsize = seg_buffs[i].size;
                 if (prev_cropsize < cropsize)
                 {
                     next_buff = _TIFFrealloc(