mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
4961 when file is unreadable return in registryviewer methods
This commit is contained in:
parent
416c0b043b
commit
384dc4c01c
@ -73,6 +73,7 @@ class WindowsRegistryViewer extends JPanel implements FileTypeViewer {
|
|||||||
content.read(data, 0x0, content.getSize());
|
content.read(data, 0x0, content.getSize());
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
logger.log(Level.WARNING, "Failed to read file content.", ex);
|
logger.log(Level.WARNING, "Failed to read file content.", ex);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
ByteBuffer buf = ByteBuffer.wrap(data);
|
ByteBuffer buf = ByteBuffer.wrap(data);
|
||||||
|
|
||||||
@ -116,6 +117,7 @@ class WindowsRegistryViewer extends JPanel implements FileTypeViewer {
|
|||||||
file.read(header, 0x0, Math.min(0x4000, file.getSize()));
|
file.read(header, 0x0, Math.min(0x4000, file.getSize()));
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
logger.log(Level.WARNING, "Failed to read file content", ex);
|
logger.log(Level.WARNING, "Failed to read file content", ex);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
ByteBuffer buf = ByteBuffer.wrap(header);
|
ByteBuffer buf = ByteBuffer.wrap(header);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user