[gimp/gimp-2-10] app: in gimpbrushcore-loops, fix memory corruption in clear_edges()



commit 0a82bd1109cbcfacec30f141dbb9f33be6606ad2
Author: Ell <ell_se yahoo com>
Date:   Wed Feb 13 12:32:03 2019 -0500

    app: in gimpbrushcore-loops, fix memory corruption in clear_edges()
    
    s/width/height/
    
    Fixes commit 9d19e804edea2e6d116f220868e8a5b836cc5ab2.
    
    (cherry picked from commit 72d4977574fd0cfff2dce2be02079fa4fc97211d)

 app/paint/gimpbrushcore-loops.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/paint/gimpbrushcore-loops.cc b/app/paint/gimpbrushcore-loops.cc
index 9598290124..d517377f75 100644
--- a/app/paint/gimpbrushcore-loops.cc
+++ b/app/paint/gimpbrushcore-loops.cc
@@ -55,8 +55,8 @@ clear_edges (GimpTempBuf *buf,
   guchar     *data;
   const Babl *format = gimp_temp_buf_get_format (buf);
   gint        bpp    = babl_format_get_bytes_per_pixel (format);
-  gint        width  = gimp_temp_buf_get_width (buf);
-  gint        height = gimp_temp_buf_get_width (buf);
+  gint        width  = gimp_temp_buf_get_width  (buf);
+  gint        height = gimp_temp_buf_get_height (buf);
 
   if (top + bottom >= height || left + right >= width)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]