mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-730 Fix SevenZipFileSystem to error correctly w/encrypted file
This commit is contained in:
parent
98d0cd9034
commit
db2cd6ba5a
1 changed files with 5 additions and 1 deletions
|
@ -15,9 +15,10 @@
|
|||
*/
|
||||
package ghidra.file.formats.sevenzip;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
|
||||
import ghidra.formats.gfilesystem.*;
|
||||
|
@ -261,6 +262,9 @@ public class SevenZipFileSystem implements GFileSystem {
|
|||
case UNKNOWN_OPERATION_RESULT: {
|
||||
throw new IOException("Unexpected: 7-Zip returned unknown operation result");
|
||||
}
|
||||
case WRONG_PASSWORD: {
|
||||
throw new IOException("7-Zip wrong password");
|
||||
}
|
||||
case OK:
|
||||
default: {
|
||||
// it's all ok!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue