CVSROOT:        /cvsroot/groff
Module name:    groff
Changes by:     Werner LEMBERG <wl>     10/11/11 12:10:30

Modified files:
        .              : ChangeLog 
        src/libs/libgroff: string.cpp 

Log message:
        Fix crash in tbl with option `nospaces'.
        Reported by Louis Guillaume <[email protected]>.
        
        * src/libs/libgroff/string.cpp (string::remove_spaces): If input
        data consists of spaces only and thus reduces to nothing, set `sz'
        to 0.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.1247&r2=1.1248
http://cvs.savannah.gnu.org/viewcvs/groff/src/libs/libgroff/string.cpp?cvsroot=groff&r1=1.5&r2=1.6

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/ChangeLog,v
retrieving revision 1.1247
retrieving revision 1.1248
diff -u -b -r1.1247 -r1.1248
--- ChangeLog   2 Nov 2010 20:11:03 -0000       1.1247
+++ ChangeLog   11 Nov 2010 12:10:28 -0000      1.1248
@@ -1,3 +1,12 @@
+2010-11-11  Werner LEMBERG  <[email protected]>
+
+       Fix crash in tbl with option `nospaces'.
+       Reported by Louis Guillaume <[email protected]>.
+
+       * src/libs/libgroff/string.cpp (string::remove_spaces): If input
+       data consists of spaces only and thus reduces to nothing, set `sz'
+       to 0.
+
 2010-11-02  Ulrich Spörlein  <[email protected]>
 
        [mdoc]: Complete previous patch and document OpenBSD releases.

Index: src/libs/libgroff/string.cpp
===================================================================
RCS file: /cvsroot/groff/groff/src/libs/libgroff/string.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- src/libs/libgroff/string.cpp        5 Jan 2009 20:11:04 -0000       1.5
+++ src/libs/libgroff/string.cpp        11 Nov 2010 12:10:30 -0000      1.6
@@ -1,5 +1,5 @@
 // -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2009
+/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2009, 2010
    Free Software Foundation, Inc.
      Written by James Clark ([email protected])
 
@@ -318,6 +318,7 @@
       if (ptr) {
        a_delete ptr;
        ptr = 0;
+       sz = 0;
       }
     }
   }

_______________________________________________
Groff-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to