[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49935] trunk/blender/source/blender/ compositor/operations/COM_InpaintOperation.cpp: fix for bug reading past the buffer bounds for the inpaint node.

Campbell Barton ideasman42 at gmail.com
Thu Aug 16 14:13:02 CEST 2012


Revision: 49935
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49935
Author:   campbellbarton
Date:     2012-08-16 12:13:01 +0000 (Thu, 16 Aug 2012)
Log Message:
-----------
fix for bug reading past the buffer bounds for the inpaint node.

Modified Paths:
--------------
    trunk/blender/source/blender/compositor/operations/COM_InpaintOperation.cpp

Modified: trunk/blender/source/blender/compositor/operations/COM_InpaintOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_InpaintOperation.cpp	2012-08-16 10:15:05 UTC (rev 49934)
+++ trunk/blender/source/blender/compositor/operations/COM_InpaintOperation.cpp	2012-08-16 12:13:01 UTC (rev 49935)
@@ -140,9 +140,9 @@
 			m[j * width + i] = r;
 		}
 	}
-	
+
 	for (int j = height - 1; j >= 0; j--) {
-		for (int i = width; i >= 0; i--) {
+		for (int i = width - 1; i >= 0; i--) {
 			int r = m[j * width + i];
 			
 			if (i + 1 < width) 




More information about the Bf-blender-cvs mailing list