Blame SOURCES/0013-lib-Increase-HIVEX_MAX_SUBKEYS-to-25000.patch

8b3850
From 87410a2cdcfe6e3bf8822cd803c251a0de2156cd Mon Sep 17 00:00:00 2001
8b3850
From: "Richard W.M. Jones" <rjones@redhat.com>
8b3850
Date: Thu, 20 Nov 2014 20:47:50 +0000
8b3850
Subject: [PATCH 13/14] lib: Increase HIVEX_MAX_SUBKEYS to 25000.
8b3850
8b3850
Thanks Nicolas Ecarnot who found a HKLM\SOFTWARE hive from a Windows
8b3850
XP machine which had an nk containing 18254 subkeys ( > current limit
8b3850
of 15000).
8b3850
8b3850
(cherry picked from commit bec3f0bb632c4b84a1dfb73eb6333c2ba9834ffb)
8b3850
---
8b3850
 lib/hivex-internal.h | 2 +-
8b3850
 1 file changed, 1 insertion(+), 1 deletion(-)
8b3850
8b3850
diff --git a/lib/hivex-internal.h b/lib/hivex-internal.h
8b3850
index bbca215..396d8d8 100644
8b3850
--- a/lib/hivex-internal.h
8b3850
+++ b/lib/hivex-internal.h
8b3850
@@ -320,7 +320,7 @@ 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       15000
8b3850
+#define HIVEX_MAX_SUBKEYS       25000
8b3850
 #define HIVEX_MAX_VALUES        10000
8b3850
 #define HIVEX_MAX_VALUE_LEN   2000000
8b3850
 #define HIVEX_MAX_ALLOCATION  1000000
8b3850
-- 
8b3850
1.8.3.1
8b3850