Menu

#17 CompoundFile GetAllNameEntries error on 2003 powerpoint

v2.0
closed-fixed
Federico
5
2015-09-18
2014-03-26
No

I have used a 2003 powerpoint file (ppt), on which I have added a watermark with aspose.slides library. The files works ok in all office applications, but openmcdf gives me an error while trying to access that file after adding the watermark. Before adding that watermark, openmcdf works just fine.

The error occurs in the GetAllNameEntries function:

using (CompoundFile file = new CompoundFile(filePath))
{
//CFStorage dataSpaceInfo = file.RootStorage.GetStorage("\u0006DataSpaces").GetStorage("DataSpaceInfo");
CFItem dsiItem = file.GetAllNamedEntries("DataSpaceInfo").FirstOrDefault();

The error is "startindex must be less than length of string".

This is because it reads a structure as stream that has the length of maximum int, but the actual string inside is less than 20 characters.

I have attached the powerpoint with the watermark that exposes this issue.

1 Attachments

Discussion

  • Federico

    Federico - 2014-10-13

    I cannot reproduce error in current development branch (future release 2.0) with the attached file.
    Please, get the current development branch to check for bug closure.
    Thank you very much for your report

    Federico

     
  • Federico

    Federico - 2014-10-13
    • status: open --> pending
     
  • Federico

    Federico - 2015-09-18
    • status: pending --> closed-fixed
     

Log in to post a comment.