Skip to content

false negatives on Zip file validation #45

@mrozx

Description

@mrozx

Describe the bug
Since version 4.2.0 Zip file validation fails (false negative)

To Reproduce
Steps to reproduce the behavior - c# code:
// filebyte bytes array starts with [80,75,3,4...]
bool isValid = FileTypeValidator.Is<FileTypeChecker.Types.ZipFile>(fileBytes);
// isValid is false !!

Expected behavior
isValid should be true

Additional context
Works properly on version 4.1.1. Issue started on version 4.2.0.
Tried to created zip files both with Windows context menu and WinRar Zip Archive. Both ways, the byte array starts the same.

Thanks
Maoz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions