Rar archive, nullpointer on OpenEntryStream for entry, should throw CryptographicException ? #320

Open
opened 2026-01-29 22:10:07 +00:00 by claunia · 0 comments
Owner

Originally created by @evpxregu on GitHub (Sep 7, 2018).

Hi,
First of all, thank you for creating this amazing project, it's been a lifesaver for many years for me now!

When I create an archive with winrar with files encrypted, and I call OpenEntryStream on one of the encrypted entries with an invalid/empty password a Nullpointer exception is thrown. Is this correct behavior, should it not throw a CryptographicException? as it is the case when you call OpenEntryStream on a zipentry.

Thanks in advance, and once again: thank you for creating this amazing project!

Originally created by @evpxregu on GitHub (Sep 7, 2018). Hi, First of all, thank you for creating this amazing project, it's been a lifesaver for many years for me now! When I create an archive with winrar with files encrypted, and I call OpenEntryStream on one of the encrypted entries with an invalid/empty password a Nullpointer exception is thrown. Is this correct behavior, should it not throw a CryptographicException? as it is the case when you call OpenEntryStream on a zipentry. Thanks in advance, and once again: thank you for creating this amazing project!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#320