Bug 62608 - Regression in VBAMacroReader in 4.0.0-dev
Summary: Regression in VBAMacroReader in 4.0.0-dev
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 4.0.x-dev
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-08 16:53 UTC by Tim Allison
Modified: 2018-08-08 17:30 UTC (History)
0 users



Attachments
example .doc file (279.50 KB, application/msword)
2018-08-08 16:53 UTC, Tim Allison
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Allison 2018-08-08 16:53:33 UTC
Created attachment 36078 [details]
example .doc file

In 3.17, we used to extract macros from some .doc and .xls files that are now triggering:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1967)
	at org.apache.poi.poifs.macros.VBAMacroReader.readProjectProperties(VBAMacroReader.java:596)
	at org.apache.poi.poifs.macros.VBAMacroReader.findProjectProperties(VBAMacroReader.java:335)
	at org.apache.poi.poifs.macros.VBAMacroReader.findProjectProperties(VBAMacroReader.java:339)
	at org.apache.poi.poifs.macros.VBAMacroReader.readMacroModules(VBAMacroReader.java:115)
	at org.apache.poi.poifs.macros.VBAMacroReader.readMacros(VBAMacroReader.java:133)
Comment 1 Tim Allison 2018-08-08 17:30:19 UTC
r1837664