You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Sjoerd Smeets (JIRA)" <ji...@apache.org> on 2010/09/30 02:45:33 UTC
[jira] Updated: (TIKA-520) DWG parser throws
ArrayIndexOutOfBoundsException when address to the header is 0x00
[ https://issues.apache.org/jira/browse/TIKA-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sjoerd Smeets updated TIKA-520:
-------------------------------
Attachment: diff.txt
testDWG2004_no_header.dwg
Attached a propose patch with test case and test document
> DWG parser throws ArrayIndexOutOfBoundsException when address to the header is 0x00
> -----------------------------------------------------------------------------------
>
> Key: TIKA-520
> URL: https://issues.apache.org/jira/browse/TIKA-520
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.8
> Environment: Linux
> Reporter: Sjoerd Smeets
> Attachments: diff.txt, testDWG2004_no_header.dwg
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> For some AutoCad 2004 files, the address on 0x20, which should point to the summary info is 0x00. This causes an ArrayIndexOutOfBoundException as stated below. Attached is a document that is causing this issue and a proposed patch for the file.
> java.lang.ArrayIndexOutOfBoundsException: -1
> at org.apache.tika.parser.dwg.DWGParser.get2004Props(DWGParser.java:103)
> at org.apache.tika.parser.dwg.DWGParser.parse(DWGParser.java:77)
> at com.ravn.test.tika.AutCadTester.parseOrg(AutCadTester.java:78)
> at com.ravn.test.AutoCadTester.main(AutoCadTester.java:32)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.