Skip to content
Articles
Article

Dart archive: ZipDecoder accepts a corrupt zip unless you pass verify, and checks it late

by Mohamed Gado dev.to

3 min read

Hadeed, my gym log, backs up to a zip: one JSON file plus the user's progress photos. Restoring replaces everything on the phone. While upgrading the Dart archive package to 4.7, I read its changelog and found that my restore could delete somebody's photos and only then discover the backup was damaged. Nobody had reported it. The fix is two parts, and you need both: Decode with verify: true. Read…

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by