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 2011/05/03 11:28:42 UTC
DO NOT REPLY [Bug 51143] New: "Buffer overrun" Exception with named
area with accent AND comment
https://issues.apache.org/bugzilla/show_bug.cgi?id=51143
Bug #: 51143
Summary: "Buffer overrun" Exception with named area with accent
AND comment
Product: POI
Version: 3.7
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: dev@poi.apache.org
ReportedBy: f.degrigny@wyniwyg.com
Classification: Unclassified
Created attachment 26949
--> https://issues.apache.org/bugzilla/attachment.cgi?id=26949
files that reproduce the bug
The following exception occurs when a tryinf to resave workbook containing a
name area with characters with accent (like french ones) in its name and a
comment OR no accent in the name but one in the comment.
(the following case : characters with accent in the name and no comment, works
well)
Exception in thread "main" java.lang.RuntimeException: Buffer overrun
at
org.apache.poi.util.LittleEndianByteArrayOutputStream.checkPosition(LittleEndianByteArrayOutputStream.java:51)
at
org.apache.poi.util.LittleEndianByteArrayOutputStream.write(LittleEndianByteArrayOutputStream.java:88)
at
org.apache.poi.hssf.record.NameCommentRecord.serialize(NameCommentRecord.java:68)
at
org.apache.poi.hssf.record.StandardRecord.serialize(StandardRecord.java:41)
at
org.apache.poi.hssf.model.InternalWorkbook.serialize(InternalWorkbook.java:1036)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getBytes(HSSFWorkbook.java:1246)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1149)
Java code : just open the test file and resave it with POI.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 51143] "Buffer overrun" Exception with named area
with accent AND comment
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51143
Nick Burch <ni...@alfresco.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Nick Burch <ni...@alfresco.com> 2011-05-04 03:11:35 UTC ---
The write logic was incorrect for non US-ASCII strings (read logic was fine).
Fixed in r1099313.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 51143] "Buffer overrun" Exception with named area
with accent AND comment
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51143
F. Degrigny <f....@wyniwyg.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |f.degrigny@wyniwyg.com
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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