mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-730 Fix SevenZipFileSystem to error correctly w/encrypted file
This commit is contained in:
@@ -15,9 +15,10 @@
|
|||||||
*/
|
*/
|
||||||
package ghidra.file.formats.sevenzip;
|
package ghidra.file.formats.sevenzip;
|
||||||
|
|
||||||
import java.io.*;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
import org.apache.commons.io.FilenameUtils;
|
import org.apache.commons.io.FilenameUtils;
|
||||||
|
|
||||||
import ghidra.formats.gfilesystem.*;
|
import ghidra.formats.gfilesystem.*;
|
||||||
@@ -261,6 +262,9 @@ public class SevenZipFileSystem implements GFileSystem {
|
|||||||
case UNKNOWN_OPERATION_RESULT: {
|
case UNKNOWN_OPERATION_RESULT: {
|
||||||
throw new IOException("Unexpected: 7-Zip returned 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:
|
case OK:
|
||||||
default: {
|
default: {
|
||||||
// it's all ok!
|
// it's all ok!
|
||||||
|
|||||||
Reference in New Issue
Block a user