openscopeproject / ZipROFS

FUSE file system with transparent access to zip files as if they were folders.
MIT License
12 stars 5 forks source link

Fix race condition resulting in corrupting files outside of ZIPs #8

Closed JuniorJPDJ closed 3 years ago

JuniorJPDJ commented 3 years ago

When multiple reads are run, one read is seeking other one and corrupts file content.

Before: Screenshot_20210507_152406 After: Screenshot_20210507_152432

qu1ck commented 3 years ago

Ah, I suspected this might happen but couldn't get it to fail in my testing.

Also to clarify, this corrupts the read, not the actual file in underlying system.

Thanks for the fix!