Bug 33263

Summary: _numberText might be below zero.
Product: POI Reporter: Der-Johng Sun <derjohng2>
Component: HWPFAssignee: POI Developers List <dev>
Severity: normal Keywords: PatchAvailable
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: I add some handle about _numberText in ListLevel.java.

Description Der-Johng Sun 2005-01-27 08:33:11 UTC
When parsing some doc files, the _numberText might be below zero (I don't
why) and then cause error, such as

        at org.apache.poi.hwpf.model.ListLevel.<init>(ListLevel.java:115)
        at org.apache.poi.hwpf.model.ListFormatOverrideLevel.<init>
        at org.apache.poi.hwpf.model.ListTables.<init>(ListTables.java:85)
        at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:172)
Comment 1 Der-Johng Sun 2005-01-27 08:36:26 UTC
Created attachment 14111 [details]
I add some handle about _numberText in ListLevel.java.

I add some handle about _numberText in ListLevel.java.
Comment 2 Rainer Klute 2005-01-28 18:23:55 UTC
Patch applied. However, we don't have a test case.