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>2012-08-16 16:13:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-16 16:13:01 +0400
commit883e9df1ccdaaa847c86e2d1457fd88333b87c84 (patch)
treef1510152758c5b8d23c5ff65c79e8e539920171d /source/blender/compositor
parentadd9aea57391a6c496a0541d97ef870c442adc81 (diff)
fix for bug reading past the buffer bounds for the inpaint node.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/operations/COM_InpaintOperation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_InpaintOperation.cpp b/source/blender/compositor/operations/COM_InpaintOperation.cpp
index 77bef54c485..9ce682ffe49 100644
--- a/source/blender/compositor/operations/COM_InpaintOperation.cpp
+++ b/source/blender/compositor/operations/COM_InpaintOperation.cpp
@@ -140,9 +140,9 @@ void InpaintSimpleOperation::calc_manhatten_distance()
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)