mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 05:07:38 +02:00
Add in dwarf2json warning about sybmols with rust namespace
This commit is contained in:
@@ -78,6 +78,17 @@ def valid(
|
||||
) -> bool:
|
||||
"""Validates a json schema."""
|
||||
input_hash = create_json_hash(input, schema)
|
||||
|
||||
# Warn about using known bad
|
||||
producer = input.get("metadata", {}).get("producer", {})
|
||||
if producer:
|
||||
if producer.get("name") == "dwarf2json" and [
|
||||
int(x) for x in ".".split(producer.get("version"))
|
||||
] < (0, 8, 0):
|
||||
raise UserWarning(
|
||||
"Dwarf2json < 0.8.0 is known to produce faulty symbols for kernels > 6.0.0"
|
||||
)
|
||||
|
||||
if input_hash in cached_validations and use_cache:
|
||||
return True
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user