brendan-duncan / archive

Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.
MIT License
400 stars 139 forks source link

Using ArchiveFile.string() results in files one byte larger than they're supposed to be, resulting in error. #200

Closed jaded0 closed 2 years ago

jaded0 commented 2 years ago

Likely comes from the line in ArchiveFile:

  size = content.length + 1;
brendan-duncan commented 2 years ago

Fixed in https://github.com/brendan-duncan/archive/commit/278defda1d0956e66d82e3736e0dc0478fe7a2d4