From: Robert Wilhelm (robert.wilhelm@gmx.net)
Date: Sat Sep 06 2003 - 11:08:18 EDT
When loading guadec-4.zabw and just doing C-A C-X C-V one or
several times, my AbiWord CVS HEAD crashes in
pt_PieceTable::_getStruxFromFragSkip doing a isFootnote(pf)
with pf == 0x0.
Probably we need something like a attached (untested) patch.
diff -u -r1.102 pt_PieceTable.cpp
--- pt_PieceTable.cpp   19 Aug 2003 04:18:12 -0000      1.102
+++ pt_PieceTable.cpp   6 Sep 2003 15:25:13 -0000
@@ -889,6 +889,10 @@
                                 || isFootnote(pf) ||
isEndFootnote(pf)))
        {
                pf=pf->getPrev();
+
+               if (!pf)
+                       return false;
+
                if(isFootnote(pf))
                {
                        countFoots--;
This archive was generated by hypermail 2.1.4 : Sat Sep 06 2003 - 11:26:46 EDT