#18 wvConvert application terminates in Linux

closed-fixed
Dom Lachowicz
None
6
2004-10-09
2004-10-07
Sudar
No

I tried converting a particular document (see
attachment), the convertion utility terminated. I have
found patch for that as well.

In the libole2/ms-ole.c file,

static int read_sb (MsOle *f)
{
....
....
// PATCH: the ptr value should be validated
// check if the ptr is in the valid bounds
if (ptr >= f->bb->len)
{
ptr = END_OF_CHAIN;
// ptr is invalid,
// force it as the end of the chain
continue;
}
// PATCH ends here

ptr = NEXT_BB (f, ptr);
}
}

After this fix, the crashing problem was not there.

Discussion

  • Sudar
    Sudar
    2004-10-07

    Killer Document

     
    Attachments
  • Sudar
    Sudar
    2004-10-07

    Killer Document 2

     
    Attachments
  • Sudar
    Sudar
    2004-10-07

    • priority: 5 --> 6
    • assigned_to: nobody --> cinamod
     
  • Sudar
    Sudar
    2004-10-07

    • status: open --> open-fixed
     
  • Sudar
    Sudar
    2004-10-07

    Logged In: YES
    user_id=1133964

    The problem is in 1.0.0 only. Just now I checked 1.0.2, the
    patch is already there in it. Thanks.

     
  • Dom Lachowicz
    Dom Lachowicz
    2004-10-07

    Logged In: YES
    user_id=69417

    please attach a patch with the output of 'cvs diff -u'. thanks.

     
  • Dom Lachowicz
    Dom Lachowicz
    2004-10-09

    • status: open-fixed --> closed-fixed