From 8545eb02e8022b5a0c8db0e0e657a39338ce7c4f Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 17 2020 18:32:16 +0000 Subject: Apply patch libtiff-CVE-2013-4231.patch patch_name: libtiff-CVE-2013-4231.patch present_in_specfile: true --- diff --git a/tools/gif2tiff.c b/tools/gif2tiff.c index 9c2cfa4..cf56c04 100644 --- a/tools/gif2tiff.c +++ b/tools/gif2tiff.c @@ -329,6 +329,10 @@ readraster(void) int status = 1; datasize = getc(infile); + + if (datasize > 12) + return 0; + clear = 1 << datasize; eoi = clear + 1; avail = clear + 2;