diff options
Diffstat (limited to 'meta/recipes-multimedia/libtiff/tiff/CVE-2022-48281.patch')
| -rw-r--r-- | meta/recipes-multimedia/libtiff/tiff/CVE-2022-48281.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2022-48281.patch b/meta/recipes-multimedia/libtiff/tiff/CVE-2022-48281.patch new file mode 100644 index 0000000000..4f8dc35251 --- /dev/null +++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2022-48281.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 97d65859bc29ee334012e9c73022d8a8e55ed586 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Su Laus <sulau@freenet.de> | ||
| 3 | Date: Sat, 21 Jan 2023 15:58:10 +0000 | ||
| 4 | Subject: [PATCH] tiffcrop: Correct simple copy paste error. Fix #488. | ||
| 5 | |||
| 6 | |||
| 7 | Upstream-Status: Backport [import from debian http://security.debian.org/debian-security/pool/updates/main/t/tiff/tiff_4.2.0-1+deb11u4.debian.tar.xz] | ||
| 8 | CVE: CVE-2022-48281 | ||
| 9 | Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> | ||
| 10 | --- | ||
| 11 | tools/tiffcrop.c | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | Index: tiff-4.2.0/tools/tiffcrop.c | ||
| 15 | =================================================================== | ||
| 16 | --- tiff-4.2.0.orig/tools/tiffcrop.c | ||
| 17 | +++ tiff-4.2.0/tools/tiffcrop.c | ||
| 18 | @@ -7516,7 +7516,7 @@ processCropSelections(struct image_data | ||
| 19 | crop_buff = (unsigned char *)limitMalloc(cropsize + NUM_BUFF_OVERSIZE_BYTES); | ||
| 20 | else | ||
| 21 | { | ||
| 22 | - prev_cropsize = seg_buffs[0].size; | ||
| 23 | + prev_cropsize = seg_buffs[1].size; | ||
| 24 | if (prev_cropsize < cropsize) | ||
| 25 | { | ||
| 26 | next_buff = _TIFFrealloc(crop_buff, cropsize + NUM_BUFF_OVERSIZE_BYTES); | ||
