Index: ms-ole.c =================================================================== RCS file: /cvsroot/wv/libole2/ms-ole.c,v retrieving revision 1.44 diff -u -r1.44 ms-ole.c --- ms-ole.c 4 Sep 2004 22:34:40 -0000 1.44 +++ ms-ole.c 13 Sep 2004 20:28:45 -0000 @@ -1086,6 +1086,11 @@ #if OLE_DEBUG > 0 g_print ("get_pps_ptr: blk = %d\n", blk); #endif + + if ( blk > BLOCK_COUNT(f)) { + g_warning ("Serious error finding pps %d\n", i); + return 0; + } if (forwrite) return BB_W_PTR(f, blk) + (i%(BB_BLOCK_SIZE/PPS_BLOCK_SIZE))*PPS_BLOCK_SIZE;