From 7bf332617eec6f161ba16971c4ac47c0f2f9d70f Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 23 Apr 2017 02:43:08 +0100 Subject: [PATCH] Remove non-determinism by favouring x64 (alphabetically lower). The bases detection requires improvement. --- volatility/framework/symbols/intermed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility/framework/symbols/intermed.py b/volatility/framework/symbols/intermed.py index cc07bb357..d9b05df89 100644 --- a/volatility/framework/symbols/intermed.py +++ b/volatility/framework/symbols/intermed.py @@ -155,7 +155,7 @@ class Version1Format(ISFormatTable): """Determines the appropriate native_types to use from the JSON data""" # TODO: Consider how to generate the natives entirely from the ISF classes = {"x64": native.x64NativeTable, "x86": native.x86NativeTable} - for nc in classes: + for nc in sorted(classes): native_class = classes[nc] for base_type in self._json_object['base_types']: try: @@ -310,7 +310,7 @@ class Version2Format(Version1Format): def _get_natives(self): """Determines the appropriate native_types to use from the JSON data""" classes = {"x64": native.x64NativeTable, "x86": native.x86NativeTable} - for nc in classes: + for nc in sorted(classes): native_class = classes[nc] for base_type in self._json_object['base_types']: try: