Backport: fix the crash part of 6972. off by one error in my last
block_count sanity check. (Robert Wilhelm)
CVS:
----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: Tag: ABI-2-0-0-STABLE
CVS: ./libole2/ms-ole.c
CVS:
----------------------------------------------------------------------
On za, 2004-09-18 at 07:07 +0200, Robert Wilhelm wrote:
> fix 6972. off by one error in my last block_count sanity check.
> CVS:
> ----------------------------------------------------------------------
> CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
> CVS:
> CVS: Committing in .
> CVS:
> CVS: Modified Files:
> CVS: ms-ole.c
> CVS:
>
> Please backport.
>
> [robert@tau libole2]$ cvs diff ms-ole.c
> Index: ms-ole.c
> ===================================================================
> RCS file: /cvsroot/wv/libole2/ms-ole.c,v
> retrieving revision 1.45
> diff -u -r1.45 ms-ole.c
> --- ms-ole.c 13 Sep 2004 20:55:22 -0000 1.45
> +++ ms-ole.c 18 Sep 2004 05:02:10 -0000
> @@ -1087,7 +1087,7 @@
> g_print ("get_pps_ptr: blk = %d\n", blk);
> #endif
>
> - if ( blk > BLOCK_COUNT(f)) {
> + if ( blk >= BLOCK_COUNT(f)) {
> g_warning ("Serious error finding pps %d\n", i);
> return 0;
> }
>
>
Received on Wed Sep 22 02:02:30 2004
This archive was generated by hypermail 2.1.8 : Wed Sep 22 2004 - 02:02:30 CEST