fix 52032 - HWPF - ArrayIndexOutofBoundsException with no stack trace (broken after revision 1178063)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-10-29 22:34:09 +00:00
parent c3704d0eff
commit 992fe34dc7
4 changed files with 13 additions and 0 deletions

View File

@ -34,6 +34,7 @@
<changes> <changes>
<release version="3.8-beta5" date="2011-??-??"> <release version="3.8-beta5" date="2011-??-??">
<action dev="poi-developers" type="fix">52032 - HWPF - ArrayIndexOutofBoundsException with no stack trace (broken after revision 1178063)</action>
<action dev="poi-developers" type="add">support for converting pptx files into images with a PPTX2PNG tool</action> <action dev="poi-developers" type="add">support for converting pptx files into images with a PPTX2PNG tool</action>
<action dev="poi-developers" type="add">52050 - Support for the Excel RATE function</action> <action dev="poi-developers" type="add">52050 - Support for the Excel RATE function</action>
<action dev="poi-developers" type="fix">51566 - HSLF fix for finishing parsing the picture stream on the first non-valid type</action> <action dev="poi-developers" type="fix">51566 - HSLF fix for finishing parsing the picture stream on the first non-valid type</action>

View File

@ -34,6 +34,7 @@ public final class ListFormatOverrideLevel
public ListFormatOverrideLevel( byte[] buf, int offset ) public ListFormatOverrideLevel( byte[] buf, int offset )
{ {
_base = new LFOLVLBase( buf, offset ); _base = new LFOLVLBase( buf, offset );
offset += LFOLVLBase.getSize();
if ( _base.isFFormatting() ) if ( _base.isFFormatting() )
{ {

View File

@ -719,4 +719,15 @@ public class TestBugs extends TestCase
HWPFTestDataSamples.writeOutAndReadBack( HWPFTestDataSamples HWPFTestDataSamples.writeOutAndReadBack( HWPFTestDataSamples
.openSampleFile( "Bug51834.doc" ) ); .openSampleFile( "Bug51834.doc" ) );
} }
/**
* Bug 52032 - [BUG] & [partial-PATCH] HWPF - ArrayIndexOutofBoundsException
* with no stack trace (broken after revision 1178063)
*/
public void testBug52032() throws Exception
{
HWPFTestDataSamples.openSampleFile( "Bug52032.doc" );
HWPFTestDataSamples.writeOutAndReadBack( HWPFTestDataSamples
.openSampleFile( "Bug52032.doc" ) );
}
} }

Binary file not shown.