tiff/tiff-CVE-2022-48281.patch
Michael Vetter 8857c133f6 - security update:
* CVE-2022-48281 [bsc#1207413]
    + tiff-CVE-2022-48281.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=166
2023-01-26 07:58:54 +00:00

14 lines
542 B
Diff

Index: tiff-4.5.0/tools/tiffcrop.c
===================================================================
--- tiff-4.5.0.orig/tools/tiffcrop.c
+++ tiff-4.5.0/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(