blob: e356d377ead4fc2e3e01c4f2c1a0b8e534f8179b [file] [log] [blame]
Andrew Geissler6aa7eec2023-03-03 12:41:14 -06001CVE: CVE-2022-48281
2Upstream-Status: Backport
3Signed-off-by: Ross Burton <ross.burton@arm.com>
4
5From 97d65859bc29ee334012e9c73022d8a8e55ed586 Mon Sep 17 00:00:00 2001
6From: Su Laus <sulau@freenet.de>
7Date: Sat, 21 Jan 2023 15:58:10 +0000
8Subject: [PATCH] tiffcrop: Correct simple copy paste error. Fix #488.
9
10---
11 tools/tiffcrop.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c
15index 14fa18da..7db69883 100644
16--- a/tools/tiffcrop.c
17+++ b/tools/tiffcrop.c
18@@ -8591,7 +8591,7 @@ static int processCropSelections(struct image_data *image,
19 cropsize + NUM_BUFF_OVERSIZE_BYTES);
20 else
21 {
22- prev_cropsize = seg_buffs[0].size;
23+ prev_cropsize = seg_buffs[i].size;
24 if (prev_cropsize < cropsize)
25 {
26 next_buff = _TIFFrealloc(
27--
28GitLab
29