mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge pull request #4380 from wschaeferB/4535-FixSevenzipDeDupe
4535 change path used for detection of existing files to not include data source
This commit is contained in:
commit
c63d0676b0
@ -370,12 +370,8 @@ class SevenZipExtractor {
|
||||
* @return the archiveFilePath to be used by the unpack method
|
||||
*/
|
||||
private String getArchiveFilePath(AbstractFile archiveFile) {
|
||||
try {
|
||||
return archiveFile.getUniquePath();
|
||||
} catch (TskCoreException ex) {
|
||||
return archiveFile.getParentPath() + archiveFile.getName();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the local directories if they do not exist for the archive
|
||||
@ -810,11 +806,11 @@ class SevenZipExtractor {
|
||||
}
|
||||
|
||||
/**
|
||||
* UnpackStream used by the SevenZipBindings to do archive extraction. A memory
|
||||
* leak exists in the SevenZip library that will not let go of the streams until
|
||||
* the entire archive extraction is complete. Instead of creating a new UnpackStream
|
||||
* for every file in the archive, instead we just rebase our EncodedFileOutputStream pointer
|
||||
* for every new file.
|
||||
* UnpackStream used by the SevenZipBindings to do archive extraction. A
|
||||
* memory leak exists in the SevenZip library that will not let go of the
|
||||
* streams until the entire archive extraction is complete. Instead of
|
||||
* creating a new UnpackStream for every file in the archive, instead we
|
||||
* just rebase our EncodedFileOutputStream pointer for every new file.
|
||||
*/
|
||||
private final static class UnpackStream implements ISequentialOutStream {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user