{"action":"created","issue":{"url":"https://api.github.com/repos/libarchive/libarchive/issues/527","labels_url":"https://api.github.com/repos/libarchive/libarchive/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/libarchive/libarchive/issues/527/comments","events_url":"https://api.github.com/repos/libarchive/libarchive/issues/527/events","html_url":"https://github.com/libarchive/libarchive/issues/527","id":69655025,"number":527,"title":"Invalid ZIP64","user":{"login":"MarcRochkind","id":5808572,"avatar_url":"https://avatars.githubusercontent.com/u/5808572?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcRochkind","html_url":"https://github.com/MarcRochkind","followers_url":"https://api.github.com/users/MarcRochkind/followers","following_url":"https://api.github.com/users/MarcRochkind/following{/other_user}","gists_url":"https://api.github.com/users/MarcRochkind/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcRochkind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcRochkind/subscriptions","organizations_url":"https://api.github.com/users/MarcRochkind/orgs","repos_url":"https://api.github.com/users/MarcRochkind/repos","events_url":"https://api.github.com/users/MarcRochkind/events{/privacy}","received_events_url":"https://api.github.com/users/MarcRochkind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T18:49:35Z","updated_at":"2015-04-21T14:42:08Z","closed_at":null,"body":"I wrote an archive that is >4GB total, although no file within it is >4GB. It doesn't seem to conform to the ZIP64 spec (at https://www.pkware.com/support/zip-app-note). For example, there seems to be no \"Zip64 end of central directory locator\". Am I failing to set some option (didn't see anything), or is libarchive using some sort of home-grown implementation of \"ZIP64\"?"},"comment":{"url":"https://api.github.com/repos/libarchive/libarchive/issues/comments/94820212","html_url":"https://github.com/libarchive/libarchive/issues/527#issuecomment-94820212","issue_url":"https://api.github.com/repos/libarchive/libarchive/issues/527","id":94820212,"user":{"login":"MarcRochkind","id":5808572,"avatar_url":"https://avatars.githubusercontent.com/u/5808572?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcRochkind","html_url":"https://github.com/MarcRochkind","followers_url":"https://api.github.com/users/MarcRochkind/followers","following_url":"https://api.github.com/users/MarcRochkind/following{/other_user}","gists_url":"https://api.github.com/users/MarcRochkind/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcRochkind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcRochkind/subscriptions","organizations_url":"https://api.github.com/users/MarcRochkind/orgs","repos_url":"https://api.github.com/users/MarcRochkind/repos","events_url":"https://api.github.com/users/MarcRochkind/events{/privacy}","received_events_url":"https://api.github.com/users/MarcRochkind/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T14:42:08Z","updated_at":"2015-04-21T14:42:08Z","body":"Tim--\n\nThanks for getting back to me.\n\nI'm looking at the source for 3.1.2, and also observed this behavior with a\nC program I wrote, running on a Mac running OS X 10.10.1.\n\nNowhere in the source do I see the Zip64 signatures, such as 0x07064b50 for\nthe \"Zip64 End of Central Directory Locator\", as defined in\nhttps://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT. Here's what I\ndo see:\n\n#define ZIP_SIGNATURE_LOCAL_FILE_HEADER 0x04034b50\n#define ZIP_SIGNATURE_DATA_DESCRIPTOR 0x08074b50\n#define ZIP_SIGNATURE_FILE_HEADER 0x02014b50\n#define ZIP_SIGNATURE_CENTRAL_DIRECTORY_END 0x06054b50\n#define ZIP_SIGNATURE_EXTRA_TIMESTAMP 0x5455\n#define ZIP_SIGNATURE_EXTRA_NEW_UNIX 0x7875\n\nSo, I conclude, based on examining the resulting ZIP and studying the code,\nthat libarchive does not write the \"Zip64 End of Central Directory\nLocator\", which I understand to be a required structure for Zip64.\n\nPerhaps you could summarize what you did do to support Zip64? I'm guessing\n(without looking at that part of the code) that you moved sizes and offsets\n>4GB to a \"Zip64 extended information extra field\". That's part of what\nneeds to be done, according to my understanding of the APPNOTE.TXT.\n\nI'm writing big archives for very long term storage in Amazon Glacier, and,\nas I don't know what software will be available in 25 or 50 years, it's\nimportant that the file follow the standard.\n\nDo you have some information, perhaps by communicating with PKWARE, that\nthe Zip64-specific central directory structures (there are two of them) are\noptional? My reading of APPNOTE.TXT indicated it's required, based on\nparagraphs such as:\nWhen using ZIP64 extensions, the corresponding value in the zip64 end of\ncentral directory record MUST also be set. This field should be set\nappropriately to indicate whether Version 1 or Version 2 format is in use.\n\nThanks for taking the time!\n\nMarc Rochkind\n\n\nOn Mon, Apr 20, 2015 at 9:13 PM, Tim Kientzle <notifications@github.com>\nwrote:\n\n> Usual questions:\n>\n>    - What version of libarchive\n>    - What operating system\n>    - What program?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/libarchive/libarchive/issues/527#issuecomment-94624995>\n> .\n>\n"}}