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 2009/10/22 01:39:39 UTC

DO NOT REPLY [Bug 48038] New: Reading StyleSheet from offset != 0 reads from arbitrary locations in the stream

https://issues.apache.org/bugzilla/show_bug.cgi?id=48038

           Summary: Reading StyleSheet from offset != 0 reads from
                    arbitrary locations in the stream
           Product: POI
           Version: 3.5-FINAL
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: major
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: trejkaz@trypticon.org


This one has been around at least as far back as 3.0.1 (which is the first copy
of POI we have in our own vendor tree.)

For some reason a lot of documents still work even though this bug exists, so
the offset must be 0 fairly often.  Even so, this causes some nasty random
errors.

I added a unit test which exhibits the issue.  My own complete testing will
follow.

-- 
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 48038] Reading StyleSheet from offset != 0 reads from arbitrary locations in the stream

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48038

Nick Burch <ni...@torchbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Nick Burch <ni...@torchbox.com> 2009-11-03 16:08:23 UTC ---
Thanks for this, applied to svn trunk in r832625.

-- 
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 48038] Reading StyleSheet from offset != 0 reads from arbitrary locations in the stream

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48038

--- Comment #1 from Trejkaz <tr...@trypticon.org> 2009-10-21 17:41:37 UTC ---
Created an attachment (id=24405)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24405)
Proposed patch

Confirming that this works on our existing test data, in addition to fixing
three files encountered so far.

-- 
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