Skip to content

is zip_file_is_seekable reliable ? #297

@remicollet

Description

@remicollet

Describe the Bug
zip_file_is_seekable seems unreliable

Expected Behavior
zip_file_is_seekable return 0 when seek not doable

Observed Behavior
zip_file_is_seekable return 1 but zip_fseek fails

To Reproduce
Using https://github.com/pierrejoye/php_zip/blob/master/tests/test.zip

Using "bar" entry, zip_file_is_seekable returns 1 and zip_fseek works
Using "entry1.txt" entry (compressed), zip_file_is_seekable returns 1 but zip_fseek fails

libzip Version
1.9.0

Operating System
Fedora 35

Additional information
zip_file_is_seekable is missing in documentation and test coverage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions