Add log warning if SegmentationFault caused by dereferencing invalid pointer is silenced when strict_pointer_mode is turned off.

This commit is contained in:
Paul Golter 2021-07-22 15:58:44 +02:00
parent cd42417c37
commit db26a0aaf1

View File

@ -421,6 +421,11 @@ class BlendFile:
raise exceptions.SegmentationFault( raise exceptions.SegmentationFault(
"address does not exist", address "address does not exist", address
) from None ) from None
log.warning(
"Silenced SegmentationFault caused by dereferencing invalid pointer"
" (0x%x) because strict_pointer_mode is off.",
address,
)
return None return None
def struct(self, name: bytes) -> dna.Struct: def struct(self, name: bytes) -> dna.Struct: