409e7f0
From bec3f0bb632c4b84a1dfb73eb6333c2ba9834ffb Mon Sep 17 00:00:00 2001
409e7f0
From: "Richard W.M. Jones" <rjones@redhat.com>
409e7f0
Date: Thu, 20 Nov 2014 20:47:50 +0000
409e7f0
Subject: [PATCH] lib: Increase HIVEX_MAX_SUBKEYS to 25000.
409e7f0
409e7f0
Thanks Nicolas Ecarnot who found a HKLM\SOFTWARE hive from a Windows
409e7f0
XP machine which had an nk containing 18254 subkeys ( > current limit
409e7f0
of 15000).
409e7f0
---
409e7f0
 lib/hivex-internal.h | 2 +-
409e7f0
 1 file changed, 1 insertion(+), 1 deletion(-)
409e7f0
409e7f0
diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h
409e7f0
index 1613013..1643469 100644
409e7f0
--- a/lib/hivex-internal.h
409e7f0
+++ b/lib/hivex-internal.h
409e7f0
@@ -323,7 +323,7 @@ extern int _hivex_get_values (hive_h *h, hive_node_h node, hive_value_h **values
409e7f0
   } while (0)
409e7f0
 
409e7f0
 /* These limits are in place to stop really stupid stuff and/or exploits. */
409e7f0
-#define HIVEX_MAX_SUBKEYS       15000
409e7f0
+#define HIVEX_MAX_SUBKEYS       25000
409e7f0
 #define HIVEX_MAX_VALUES        10000
409e7f0
 #define HIVEX_MAX_VALUE_LEN   8000000
409e7f0
 #define HIVEX_MAX_ALLOCATION  1000000
409e7f0
-- 
409e7f0
2.1.0
409e7f0