New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libarchive wrongly read rar package with a microsoft word in it #765
Comments
Could you provide more details? How did you create the rar file in question? When you ask another program (such as unrar) to list the files, what does it show? Can you provide us with a (small) example file to reproduce this problem? |
hi kientzle, |
I noticed that this docx is generated by an MS Word compliant software called Kingsoft WPS. I can open it with MS Word. But I can also open it with vim. And it shows that it looks like a zip file ... while docx generated by MS Word looks like a binary file with vim.... |
The Office XML format is using a zip wrapper, just like ODT. |
Hi all,
I compiled the latest libarchive and had a try. I feed a rar (v2.9) package with a microsoft word document (.docx) in it to the lib, the lib returns me a wrong file list. Here're the details:
code:
`
`
and the Log is:
2016-08-11 20:01:43.872 libarchiveTest[97694:486343] docProps/
2016-08-11 20:01:43.872 libarchiveTest[97694:486343] docProps/app.xml
2016-08-11 20:01:43.873 libarchiveTest[97694:486343] docProps/core.xml
2016-08-11 20:01:43.873 libarchiveTest[97694:486343] docProps/custom.xml
2016-08-11 20:01:43.873 libarchiveTest[97694:486343] word/
2016-08-11 20:01:43.873 libarchiveTest[97694:486343] word/styles.xml
2016-08-11 20:01:43.873 libarchiveTest[97694:486343] word/settings.xml
2016-08-11 20:01:43.874 libarchiveTest[97694:486343] word/theme/
2016-08-11 20:01:43.874 libarchiveTest[97694:486343] word/theme/theme1.xml
2016-08-11 20:01:43.874 libarchiveTest[97694:486343] word/document.xml
2016-08-11 20:01:43.874 libarchiveTest[97694:486343] customXml/
2016-08-11 20:01:43.874 libarchiveTest[97694:486343] customXml/item1.xml
2016-08-11 20:01:43.874 libarchiveTest[97694:486343] customXml/itemProps1.xml
2016-08-11 20:01:43.875 libarchiveTest[97694:486343] word/fontTable.xml
2016-08-11 20:01:43.875 libarchiveTest[97694:486343] word/media/
2016-08-11 20:01:43.875 libarchiveTest[97694:486343] word/media/image18.jpeg
2016-08-11 20:01:43.875 libarchiveTest[97694:486343] word/media/image14.png
2016-08-11 20:01:43.875 libarchiveTest[97694:486343] word/media/image11.jpeg
2016-08-11 20:01:43.875 libarchiveTest[97694:486343] word/media/image9.png
2016-08-11 20:01:43.875 libarchiveTest[97694:486343] word/media/image16.jpeg
2016-08-11 20:01:43.876 libarchiveTest[97694:486343] word/media/image10.png
2016-08-11 20:01:43.876 libarchiveTest[97694:486343] word/media/image8.png
2016-08-11 20:01:43.876 libarchiveTest[97694:486343] word/media/image15.jpeg
2016-08-11 20:01:43.876 libarchiveTest[97694:486343] word/media/image3.png
2016-08-11 20:01:43.876 libarchiveTest[97694:486343] word/media/image6.png
2016-08-11 20:01:43.877 libarchiveTest[97694:486343] word/media/image17.png
2016-08-11 20:01:43.877 libarchiveTest[97694:486343] word/media/image13.png
2016-08-11 20:01:43.877 libarchiveTest[97694:486343] word/media/image12.png
2016-08-11 20:01:43.877 libarchiveTest[97694:486343] word/media/image1.png
2016-08-11 20:01:43.877 libarchiveTest[97694:486343] word/media/image2.jpeg
2016-08-11 20:01:43.877 libarchiveTest[97694:486343] word/media/image4.jpeg
2016-08-11 20:01:43.878 libarchiveTest[97694:486343] word/media/image5.png
2016-08-11 20:01:43.878 libarchiveTest[97694:486343] word/media/image7.png
2016-08-11 20:01:43.878 libarchiveTest[97694:486343] _rels/
2016-08-11 20:01:43.878 libarchiveTest[97694:486343] _rels/.rels
2016-08-11 20:01:43.878 libarchiveTest[97694:486343] customXml/_rels/
2016-08-11 20:01:43.879 libarchiveTest[97694:486343] customXml/_rels/item1.xml.rels
2016-08-11 20:01:43.879 libarchiveTest[97694:486343] word/_rels/
2016-08-11 20:01:43.879 libarchiveTest[97694:486343] word/_rels/document.xml.rels
2016-08-11 20:01:43.879 libarchiveTest[97694:486343] [Content_Types].xml
it seems that it takes word document as a compressed package? But it's OK for zip/tar/tar.gz ...
The text was updated successfully, but these errors were encountered: