Skip to content

Deleting a file from a .zip archive corrupts the archive #2542

@zieren

Description

@zieren

Version

Double Commander
Version: 1.1.29 gamma
Revision: 800
Commit: b4b2d9a
Build: 2025/10/12
Lazarus: 3.8.0.0
Free Pascal: 3.2.2
Platform: x86_64-Linux-qt5
System: Fedora release 42 (Adams)
Desktop Environment: GNOME (wayland)
Widgetset library: Qt 5.15.17

Description

I have a 7GB .zip file downloaded from Google Takeout (this service lets you download all your data in one place). When I delete a 5GB file inside that archive, the resulting archive is corrupt.

I haven't been able to reproduce this with other .zip files. Using zip -d on the same file does work, though it reports a warning for each file:

zip warning: Local Version Needed To Extract does not match CD: Takeout/Google Chat/Groups/foobar.jpg

To reproduce, I don't have a better way than to use a Google account, upload a 5GB file to Google Drive, and then use Takeout.

IMHO the problem is less that this happens for Google Takeout, but that it can happen at all.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions