Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-03-25 00:59:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-25 00:59:53 +0400
commit48a256c910e85405747ad47a62bcb70159aee638 (patch)
treec665ae4f82f80da220231e17f2493dc4ef22c25d /source/blender/imbuf/intern/targa.c
parentae1325c96300795da70f9f386824b9c7cc32261e (diff)
fix [#34745] TGA with size of 4Kx8K won't load
Checked the size limit on TGA files in svn history and this is was just an arbitrary limit that might have made sense some years back, but not now.
Diffstat (limited to 'source/blender/imbuf/intern/targa.c')
-rw-r--r--source/blender/imbuf/intern/targa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c
index 0c30af60388..7e6116b242c 100644
--- a/source/blender/imbuf/intern/targa.c
+++ b/source/blender/imbuf/intern/targa.c
@@ -344,8 +344,8 @@ static int checktarga(TARGA *tga, unsigned char *mem)
return 0;
}
if (tga->mapsize && tga->mapbits > 32) return 0;
- if (tga->xsize <= 0 || tga->xsize >= 8192) return 0;
- if (tga->ysize <= 0 || tga->ysize >= 8192) return 0;
+ if (tga->xsize <= 0) return 0;
+ if (tga->ysize <= 0) return 0;
if (tga->pixsize > 32) return 0;
if (tga->pixsize == 0) return 0;
return 1;