From db26a0aaf191ce8ce3650b44a6a2608d919251da Mon Sep 17 00:00:00 2001 From: Paul Golter Date: Thu, 22 Jul 2021 15:58:44 +0200 Subject: [PATCH] Add log warning if SegmentationFault caused by dereferencing invalid pointer is silenced when strict_pointer_mode is turned off. --- blender_asset_tracer/blendfile/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blender_asset_tracer/blendfile/__init__.py b/blender_asset_tracer/blendfile/__init__.py index 0652a12..f2d1231 100644 --- a/blender_asset_tracer/blendfile/__init__.py +++ b/blender_asset_tracer/blendfile/__init__.py @@ -421,6 +421,11 @@ class BlendFile: raise exceptions.SegmentationFault( "address does not exist", address ) from None + log.warning( + "Silenced SegmentationFault caused by dereferencing invalid pointer" + " (0x%x) because strict_pointer_mode is off.", + address, + ) return None def struct(self, name: bytes) -> dna.Struct: