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/05/18 23:20:59 UTC
[Bug 47270] Bad Section Length - Section.java
https://bz.apache.org/bugzilla/show_bug.cgi?id=47270
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|PatchAvailable |
Resolution|--- |LATER
Status|NEEDINFO |RESOLVED
--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
I think the negative value results from interpreting an unsigned int as signed
int, i.e. the unsigned int has a larger positive range than what int can hold,
so very large unsigned ints will lead to negative signed int values when a cast
is used. to correctly handle large unsigned ints, you need to use a long
datatype.
However I assume something with the document is not quite right here as I don't
think the section size really holds such large values in your document, or?
However for now without a sample document we are not able to investigate here,
therefore I am setting this to LATER for now, please reopen this with a sample
document and the steps to reproduce the problem, ideally as self-sufficient
unit test.
--
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