mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Checking if a 7z file is encrypted will crash #583
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @njlr on GitHub (Sep 14, 2023).
Create a
7zfile:Check the entries are encrypted:
Scratch.fsxIt will crash:
@Erior commented on GitHub (Sep 23, 2023):
To see if I recreated the issue correctly, if you check if it is a directory before checking the IsEncrypted flag
if not e.IsDirectory thenDoes that do anything for you?
@njlr commented on GitHub (Sep 26, 2023):
This does not crash:
Perhaps the error message should be improved?
Can a directory be encrypted?
@adamhathcock commented on GitHub (Sep 26, 2023):
This was fixed: https://github.com/adamhathcock/sharpcompress/pull/768