Hi Chris,

> On 16.07.2014 15:24, Chris Bamford wrote:
> Looking in the source of Ole10Native at the offending line I see:
>      if (totalSize < ofs) {
>          throw new Ole10NativeException("Invalid Ole10Native");
>      }
>
>Can anyone shed any light on what this means and why it happens?

The MS docs [1] are quite limited on that stream, so the code is just plain 
guessing :|
There are Ole10Native streams without an actually data part - i.e. (some) 
equation editor objects come without the data part, but encode somehow their 
data within the filename.
But the Ole objects I looked at up so far, were common in having a label, a 
filename and a command or at least 3 length-prefixed byte-arrays.
So this line checks if there was a error with the length-prefixes.

If you can share your file, please open a bug entry or alternatively send it to 
my private email.
I would then try to figure out, how the bin object could be handled.
Currently I don't have much time and my priority is to finish that xml 
signature stuff, so that may take some time ... sorry

Andi.


[1] http://msdn.microsoft.com/en-us/library/dd942447.aspx



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to