mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-24 18:44:52 +02:00
Fix up one missing exception change.
This commit is contained in:
@@ -133,7 +133,9 @@ class TranslationLayerInterface(DataLayerInterface, metaclass = ABCMeta):
|
||||
length = len(value)
|
||||
for (offset, mapped_offset, length, layer) in self.mapping(offset, length):
|
||||
if offset > current_offset:
|
||||
raise exceptions.InvalidAddressException("Layer " + self.name + " cannot map offset " + current_offset)
|
||||
raise exceptions.InvalidAddressException(self.name, current_offset,
|
||||
"Layer " + self.name + " cannot map offset " +
|
||||
str(current_offset))
|
||||
elif offset < current_offset:
|
||||
raise exceptions.LayerException("Mapping returned an overlapping element")
|
||||
self._context.memory.write(layer, mapped_offset, length)
|
||||
|
||||
Reference in New Issue
Block a user