about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/HISTORY6
-rw-r--r--editor/pambackground.c2
-rw-r--r--version.mk2
3 files changed, 8 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index a5728751..ff701c7f 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,6 +4,12 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+14.11.23 BJH  Release 10.47.53
+
+              pambackground: fix bug: segfault or incorrect results in most
+              cases.  Thanks Ludolf Holzheid (ludolf.holzheid@gmx.de).
+              Introduced in Netpbm 10.37 (December 2006).
+
 14.11.01 BJH  Release 10.47.52
 
               Fix 'make package': missing pkgconfig_template file.
diff --git a/editor/pambackground.c b/editor/pambackground.c
index 2ee1afd5..1aa53177 100644
--- a/editor/pambackground.c
+++ b/editor/pambackground.c
@@ -353,7 +353,7 @@ expandBackgroundVert(unsigned char ** const pi,
     unsigned int col;
     bool expanded;
 
-    for (col = 1, expanded = FALSE; col < height-1; ++col) {
+    for (col = 1, expanded = FALSE; col < width-1; ++col) {
         int row;
 
         for (row = 1; row < height - 1; ++row) {
diff --git a/version.mk b/version.mk
index b054e2e1..5905eb9d 100644
--- a/version.mk
+++ b/version.mk
@@ -1,3 +1,3 @@
 NETPBM_MAJOR_RELEASE = 10
 NETPBM_MINOR_RELEASE = 47
-NETPBM_POINT_RELEASE = 52
+NETPBM_POINT_RELEASE = 53