mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-23 18:14:51 +02:00
Fix broken truncation from Vol3 bytes to string conversion
This commit is contained in:
@@ -188,7 +188,7 @@ def bytes_to_decoded_string(
|
||||
)
|
||||
|
||||
# cut at terminating byte, if found
|
||||
data = data[:idx]
|
||||
data = bytes(full_decoded_string[:idx], encoding=encoding)
|
||||
|
||||
# return with caller-specified encoding and errors
|
||||
return data.decode(encoding=encoding, errors=errors)
|
||||
|
||||
Reference in New Issue
Block a user