Skip to content

Test for an archive with empty files #30

Description

@eagleflo

This was broken under Python 3 for a long time.

Activity

  1. self-assigned this
    on Mar 17, 2014
  2. GraylinKim commented on Mar 17, 2014

    @GraylinKim
    Collaborator

    Do you need me to provide one of these? The archives I originally found the issue with are private but I can dig around and find one for this.

  3. eagleflo commented on Mar 17, 2014

    @eagleflo
    OwnerAuthor

    Sure, I'd appreciate if you could find a reasonably small archive with at least one empty file.

    For legal reasons it has to be user-generated, though, and preferably with official tools such as game clients or map editors.

  4. eagleflo commented on Mar 17, 2014

    @eagleflo
    OwnerAuthor

    We could of course also create an artificial test-case archive if we can be sure that it matches what is found in the wild.

  5. MGatner commented on Apr 28, 2018

    @MGatner

    Wow this has been open a long time. I ran into this issue try to extract_to_disk (from CLI, -x) from a Heroes or the Storm .StormReplay file. Actually all of these archives I've tested so far have a zero-byte file in them; I am glad to provide one or many as examples.
    My fix has been to add a test for empty data before calling fwrite; I'll see if I can implement an example in this repo. I'm not sure where else the empty file(s) are an issue though.

  6. MGatner commented on Apr 28, 2018

    @MGatner

    Ah actually it looks like this is fixed in the current version here! https://github.com/Blizzard/heroprotocol appears to have an old version of mpyq included which is causing the issue.
    @eagleflo were there other issues with empty files other than writing to disk? I haven't run into them so far...

  7. eagleflo commented on Apr 28, 2018

    @eagleflo
    OwnerAuthor

    No, I think #28 fixed that.

  8. MGatner commented on Apr 28, 2018

    @MGatner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions