From ac14144df40b5aa415188418f471942e405e9156 Mon Sep 17 00:00:00 2001 From: Matt Coleman Date: Sat, 3 Dec 2016 15:25:43 -0500 Subject: [PATCH] Increase HIVEX_MAX_SUBKEYS and HIVEX_MAX_VALUES This increases the defined limits based on counts observed in the Microsoft\Windows NT\CurrentVersion subkey of the software hive. --- lib/hivex-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h index 1643469..26f4964 100644 --- a/lib/hivex-internal.h +++ b/lib/hivex-internal.h @@ -323,8 +323,8 @@ extern int _hivex_get_values (hive_h *h, hive_node_h node, hive_value_h **values } while (0) /* These limits are in place to stop really stupid stuff and/or exploits. */ -#define HIVEX_MAX_SUBKEYS 25000 -#define HIVEX_MAX_VALUES 10000 +#define HIVEX_MAX_SUBKEYS 70000 +#define HIVEX_MAX_VALUES 55000 #define HIVEX_MAX_VALUE_LEN 8000000 #define HIVEX_MAX_ALLOCATION 1000000 -- 2.11.0