Registry: Ignore errors if ignore_errors is set.

This commit is contained in:
Mike Auty
2020-01-17 01:14:09 +00:00
parent 8f71c61440
commit 81653dba6d
+7 -2
View File
@@ -216,8 +216,13 @@ class RegistryHive(linear.LinearlyMappedLayer):
# Return the translated offset without checking bounds within the HBIN. The check runs into
# issues when pages are swapped on large HBINs, and did not seem to find any errors on single page
# HBINs while dramatically slowing performance.
translated_offset = self._translate(offset)
response = [(offset, translated_offset, length, self._base_layer)]
try:
translated_offset = self._translate(offset)
response = [(offset, translated_offset, length, self._base_layer)]
except exceptions.LayerException:
if not ignore_errors:
raise
response = []
return response
@property