diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-16 16:13:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-16 16:13:01 +0400 |
commit | 883e9df1ccdaaa847c86e2d1457fd88333b87c84 (patch) | |
tree | f1510152758c5b8d23c5ff65c79e8e539920171d /source/blender/compositor/operations | |
parent | add9aea57391a6c496a0541d97ef870c442adc81 (diff) |
fix for bug reading past the buffer bounds for the inpaint node.
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_InpaintOperation.cpp | 4 |
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) |