mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Update encodings
This commit is contained in:
@@ -188,7 +188,14 @@ def address_to_string(
|
||||
if count < 1:
|
||||
raise ValueError("Count must be greater than 0")
|
||||
|
||||
encodings = {"utf8": 1, "utf16": 2, "utf32": 4}
|
||||
encodings = {
|
||||
"utf-8": 1,
|
||||
"utf8": 1,
|
||||
"utf-16": 2,
|
||||
"utf16": 2,
|
||||
"utf32": 4,
|
||||
"utf-32": 4,
|
||||
}
|
||||
if encoding not in encodings:
|
||||
raise ValueError(
|
||||
f"Encoding ({encoding} is invalid. Must be one of {[e for e in encodings]}."
|
||||
|
||||
Reference in New Issue
Block a user