From 815b2fe918241ab2847512cfc7e9980b0a9e50ed Mon Sep 17 00:00:00 2001 From: Gustavo Moreira Date: Fri, 31 Jan 2025 19:49:04 +1100 Subject: [PATCH] Fix bug in address_to_string() helper --- volatility3/framework/objects/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/objects/utility.py b/volatility3/framework/objects/utility.py index dc450c0b3..93216743c 100644 --- a/volatility3/framework/objects/utility.py +++ b/volatility3/framework/objects/utility.py @@ -127,7 +127,7 @@ def address_to_string( layer = context.layers[layer_name] text = b"" - while len(text) <= count: + while len(text) < count: current_block_size = min(count - len(text), block_size) temp_text = layer.read(address + len(text), current_block_size) idx = temp_text.find(b"\x00")