[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55557] trunk/blender/source/blender/imbuf /intern/targa.c: fix [#34745] TGA with size of 4Kx8K won't load

Campbell Barton ideasman42 at gmail.com
Sun Mar 24 21:59:54 CET 2013


Revision: 55557
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55557
Author:   campbellbarton
Date:     2013-03-24 20:59:53 +0000 (Sun, 24 Mar 2013)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/intern/targa.c

Modified: trunk/blender/source/blender/imbuf/intern/targa.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/targa.c	2013-03-24 19:29:49 UTC (rev 55556)
+++ trunk/blender/source/blender/imbuf/intern/targa.c	2013-03-24 20:59:53 UTC (rev 55557)
@@ -344,8 +344,8 @@
 			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;




More information about the Bf-blender-cvs mailing list