8b3850
From d5ae3045970a815d2bdac768d6924b31f3b8b4ca Mon Sep 17 00:00:00 2001
8b3850
From: Matt Coleman <matt@datto.com>
8b3850
Date: Sat, 3 Dec 2016 15:25:43 -0500
214838
Subject: [PATCH 14/16] Increase HIVEX_MAX_SUBKEYS and HIVEX_MAX_VALUES
8b3850
8b3850
This increases the defined limits based on counts observed in the
8b3850
Microsoft\Windows NT\CurrentVersion subkey of the software hive.
8b3850
8b3850
(cherry picked from commit 4b024fa031251fbeacb6ecf2821d8d027d59de0d)
8b3850
---
8b3850
 lib/hivex-internal.h | 4 ++--
8b3850
 1 file changed, 2 insertions(+), 2 deletions(-)
8b3850
8b3850
diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h
8b3850
index 396d8d8..498d64f 100644
8b3850
--- a/lib/hivex-internal.h
8b3850
+++ b/lib/hivex-internal.h
8b3850
@@ -320,8 +320,8 @@ extern int _hivex_get_values (hive_h *h, hive_node_h node, hive_value_h **values
8b3850
   } while (0)
8b3850
 
8b3850
 /* These limits are in place to stop really stupid stuff and/or exploits. */
8b3850
-#define HIVEX_MAX_SUBKEYS       25000
8b3850
-#define HIVEX_MAX_VALUES        10000
8b3850
+#define HIVEX_MAX_SUBKEYS       70000
8b3850
+#define HIVEX_MAX_VALUES        55000
8b3850
 #define HIVEX_MAX_VALUE_LEN   2000000
8b3850
 #define HIVEX_MAX_ALLOCATION  1000000
8b3850
 
8b3850
-- 
8b3850
1.8.3.1
8b3850