Giter Site home page Giter Site logo

Valid Concern to not use xz ? about xz HOT 4 CLOSED

gcstang avatar gcstang commented on May 30, 2024
Valid Concern to not use xz ?

from xz.

Comments (4)

ulikunitz avatar ulikunitz commented on May 30, 2024

While I share a lot of the observations (complex format, unclear padding rules, LZMA2 format undocumented), I don't share all the conclusions particularly those about the severity of bit errors in the headers. If your archiving system doesn't protect you from bit errors then you shouldn't store compressed data on it. In practical terms a bit error in a compressed file will affect all data following it. The exception are parallel compressed files, where unavoidable dictionary resets provide synchronization points. The parallel-compressed segments could be quite large (>= 8 MiB); compare that to an uncompressed UTF-8 file, where every code point is a synchronization point.

If xz is used for archiving purposes, I recommend to use it without any additional filters.You should use the SHA256 checksum, since it also protect the length of the data stream. CRC-32 and CRC-64 lack this capability. This might contradict a statement from the article, but SHA256 embeds the length of the data stream into the data that is hashed. The fact that the length field is not secured by a check sum, doesn't matter.

from xz.

gcstang avatar gcstang commented on May 30, 2024

@ulikunitz thank you very much for your response.
Does your project by default support what you recommend?

from xz.

ulikunitz avatar ulikunitz commented on May 30, 2024

I don't support any additional filters, but the default is the CRC64 checksum. You would need a WriterConfig that sets the CheckSum field to SHA256.

from xz.

gcstang avatar gcstang commented on May 30, 2024

@ulikunitz ok, thank you

from xz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.