Giter Club home page Giter Club logo

Comments (7)

sunny-shu avatar sunny-shu commented on May 30, 2024

your file format is broken up. you can use winrar to test it.

from junrar.

gotson avatar gotson commented on May 30, 2024

Indeed the file is corrupt:

rar t some-corrupt-file.rar                                                                                                                                  Thu Jul 16 10:27:00 2020

RAR 5.91   Copyright (c) 1993-2020 Alexander Roshal   25 Jun 2020
Trial version             Type 'rar -?' for help

Corrupt header is found
Main archive header is corrupt

Testing archive some-corrupt-file.rar

Corrupt header is found
No files to extract

It would make sense indeed to handle this and throw a RarException instead of a NPE. I'll see if I can add this.

from junrar.

sunny-shu avatar sunny-shu commented on May 30, 2024

@gotson
hi gotson ,i've found the problematic code,please merge my prior PR soon. so i can create new PR for this

from junrar.

gotson avatar gotson commented on May 30, 2024

@gotson
hi gotson ,i've found the problematic code,please merge my prior PR soon. so i can create new PR for this

Thanks. Can you maybe add a test with the provided file in the PR as well as the code fix?

from junrar.

sunny-shu avatar sunny-shu commented on May 30, 2024

ok,I use sparkhi‘s data as test data, is that ok?

from junrar.

gotson avatar gotson commented on May 30, 2024

ok,I use sparkhi‘s data as test data, is that ok?

yes!

from junrar.

gotson avatar gotson commented on May 30, 2024

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from junrar.

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.