[ https://issues.apache.org/jira/browse/TIKA-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178889#comment-14178889 ]
Bin Hawking commented on TIKA-1446: ----------------------------------- The above attached is my fix, which is the old or new code in tika-1.6\tika-parsers\src\main\java\org\apache\tika\parser\chm\ Please use diff to see my changes. This fix addresses TIKA- 1430, 1446, 1447, 1448. NOTE: My fix is not well tested and may be incomplete. And, because I am adding new features to the chm parser for my own application,including parsing HHK and HHC files for more metadata; there are some distractions in my revisions which are not applicable to the original tika project. Sorry for the inconvenience. > CHM parser : wrong decompression of aligned blocks > -------------------------------------------------- > > Key: TIKA-1446 > URL: https://issues.apache.org/jira/browse/TIKA-1446 > Project: Tika > Issue Type: Bug > Affects Versions: 1.7 > Reporter: Bin Hawking > Priority: Critical > Attachments: chm.zip > > > If an embedded file contains aligned blocks, the parser outputs chaotic text > or empty text as to this file. > I have fixed it myself, corrected decompressAlignedBlock() and its > preparation methods. Mostly this bug is due to misusing main tree/align > tree/length tree. And some tree is built wrong. -- This message was sent by Atlassian JIRA (v6.3.4#6332)