8000 mz_stream_open seg fault · Issue #225 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

mz_stream_open seg fault #225

Closed
Closed

Description

@umberto-sonnino

Hi there, I've been trying to use minizip for unzipping, I've compiled and set it up locally on my machine, but while trying to run the example (i.e. minizip.c), I'm getting a segmentation fault on the call to mz_stream_open.

I'm on macOS High Sierra 10.13.2

Thanks a lot in advance

Activity

  1. nmoinvaz commented on Jan 22, 2018

    @nmoinvaz
    Member

    Do you have more information such as what line it is occurring on? What command line arguments you are using..

  2. umberto-sonnino commented on Jan 22, 2018

    @umberto-sonnino
    Author

    I'm building the example file like this:
    clang -Wall -g minizip.c -o example -L. -lz -lminizip
    And then running the executable like so:
    ./example -l file.zip OR ./example -x file.zip
    And it's failing on line 700, I get a segmentation fault on the call to mz_stream_open()
    I've got the library compiled statically and available in the current folder.
    Let me know if this is any help.

  3. nmoinvaz commented on Jan 22, 2018

    @nmoinvaz
    Member

    Have you tried building the executable with cmake?

  4. nmoinvaz commented on Jan 30, 2018

    @nmoinvaz
    Member

    I have committed a fix for it to the dev branch. Thank you for reporting.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssue or bug has been fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0