From 029f6eca52f20a9c8e30fa4d7245b8fa2fb6c3f5 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sat, 29 Apr 2017 14:59:48 +0100 Subject: [PATCH] Fix up interface versioning issues. Unfortunately one interface change was missed, getting the versions slightly out of alignment. Due to the 2.1 schema already being published, the best course of action was to move to version 4.0. This means that there's a tiny chance some schemas exist somewhere in the world with a non-existant 3.0.0 schema. Volatility will fail with an error saying they're not supported. 5:S Sorry! --- volatility/framework/symbols/intermed.py | 10 +++++----- .../schemas/{schema-3.0.0.json => schema-4.0.0.json} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename volatility/schemas/{schema-3.0.0.json => schema-4.0.0.json} (99%) diff --git a/volatility/framework/symbols/intermed.py b/volatility/framework/symbols/intermed.py index 0c37ecfd4..e0ddbe940 100644 --- a/volatility/framework/symbols/intermed.py +++ b/volatility/framework/symbols/intermed.py @@ -342,9 +342,9 @@ class Version2Format(Version1Format): members = members) -class Version2_1Format(Version2Format): +class Version3Format(Version2Format): """Class for storing intermediate debugging data as objects and classes""" - current = 2 + current = 3 revision = 0 age = 1 version = (current - age, age, revision) @@ -360,9 +360,9 @@ class Version2_1Format(Version2Format): return interfaces.symbols.Symbol(name = name, address = symbol['address'], type = symbol_type) -class Version3_0Format(Version2_1Format): - """Class for stroing intermediate debugging data as objects and classes""" - current = 3 +class Version4Format(Version3Format): + """Class for storing intermediate debugging data as objects and classes""" + current = 4 revision = 0 age = 0 version = (current - age, age, revision) diff --git a/volatility/schemas/schema-3.0.0.json b/volatility/schemas/schema-4.0.0.json similarity index 99% rename from volatility/schemas/schema-3.0.0.json rename to volatility/schemas/schema-4.0.0.json index e384fbc38..9337aa5ce 100644 --- a/volatility/schemas/schema-3.0.0.json +++ b/volatility/schemas/schema-4.0.0.json @@ -9,7 +9,7 @@ "properties": { "format": { "type": "string", - "pattern": "^3.[0-9]+.[0-9]+$" + "pattern": "^4.[0-9]+.[0-9]+$" }, "source": { "type": "object",