You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/03/01 22:58:55 UTC

[Bug 56893] Overflow in UnicodeString results in corrupted file when setCellValue() is called with a string larger than 32767

https://bz.apache.org/bugzilla/show_bug.cgi?id=56893

--- Comment #4 from Dominik Stadler <do...@gmx.at> ---
It seems UnicodeString is used for multiple items listed in the spec. 

According to the spec under "2.5.294 XLUnicodeString" the length is specified
as 2 bytes.

Another usage is XLUnicodeRichExtendedString under "2.5.293
XLUnicodeRichExtendedString", this one allows continuation records, however the
lenght-information still only allows 2 bytes.

So it seems there is a limit of 65535 characters in the record-definitions.

SpreadsheetVersion.EXCEL97, which we use to verify text-length in other places
has 32767, not sure if this is somewhere in the spec or imposed because of
other issues. At least formula-text seems to be limited to this value by the
spec.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org