groff-commit
[Top][All Lists]
Advanced

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

[Groff-commit] groff ChangeLog src/libs/libgroff/string.cpp


From: Werner LEMBERG
Subject: [Groff-commit] groff ChangeLog src/libs/libgroff/string.cpp
Date: Thu, 11 Nov 2010 12:10:30 +0000

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 <address@hidden>.
        
        * 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  <address@hidden>
+
+       Fix crash in tbl with option `nospaces'.
+       Reported by Louis Guillaume <address@hidden>.
+
+       * 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  <address@hidden>
 
        [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 (address@hidden)
 
@@ -318,6 +318,7 @@
       if (ptr) {
        a_delete ptr;
        ptr = 0;
+       sz = 0;
       }
     }
   }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]