Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 1 | CVE: CVE-2022-48281 |
| 2 | Upstream-Status: Backport |
| 3 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 4 | |
| 5 | From 97d65859bc29ee334012e9c73022d8a8e55ed586 Mon Sep 17 00:00:00 2001 |
| 6 | From: Su Laus <sulau@freenet.de> |
| 7 | Date: Sat, 21 Jan 2023 15:58:10 +0000 |
| 8 | Subject: [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 | |
| 14 | diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c |
| 15 | index 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 | -- |
| 28 | GitLab |
| 29 | |