Coder Social home page Coder Social logo

Comments (7)

weltkante avatar weltkante commented on June 16, 2024

Link to archive is http://springrts.com/dl/buildbot/default/develop/102.0.1-19-gfbc1b5b/win32/spring_%7bdevelop%7d102.0.1-19-gfbc1b5b_win32-minimal-portable.7z

from managed-lzma.

weltkante avatar weltkante commented on June 16, 2024

In a first look the metadata section of the 7z file (compressed via lzma) decodes properly (decoded checksum matches the header value) but then parsing the metadata section yields strange file attributes which make no sense; from there on it is probably broken. Right now I'm suspecting a bug in the metadata parsing code.

from managed-lzma.

weltkante avatar weltkante commented on June 16, 2024

Update: the archive has been created on linux, using linux file attributes. I don't parse these properly since they use different constants.

If I ignore the linux file attributes the decoder still throws an exception, so something else is going wrong.

from managed-lzma.

weltkante avatar weltkante commented on June 16, 2024

For the second part its the same issue as #16 just for the lzma decoder instead of lzma2 ... oops

I'm fixing that over at the other issue, leaving this issue to deal with the linux file attributes.

from managed-lzma.

weltkante avatar weltkante commented on June 16, 2024

Further research shows that linux file attributes are not officially supported by 7z archives, but some 3rd party implementations abused the fact that the official codebase is lazy in its error checking and started hiding linux file attributes in unused metadata bits.

Newer versions of the 7z GUI client acknowledge this and try to parse this unofficial extension, but the main 7z codebase still does not support it, it is only handled in the UI layer.

However since it seems to have become a de-facto standard I'll update my implementation to be able to deal with it.

from managed-lzma.

weltkante avatar weltkante commented on June 16, 2024

This should make it possible to read archives using this extension. I'll create a separate issue to track the possible feature request of being able to extract those posix file attributes.

from managed-lzma.

weltkante avatar weltkante commented on June 16, 2024

The fix for this is included in alpha-6

from managed-lzma.

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.