summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-03-26 13:49:25 +0000
committerRichard Jones <rjones@redhat.com>2010-03-26 13:52:33 +0000
commit9c4552b0d4bd2971b7eff9cfe0d56430ba962710 (patch)
tree1494aa496e29bb4c8180bec4046ba01749896c9d
parent56feba1260955347a53bd34a37ba295770e1dc5b (diff)
downloadhivex-9c4552b0d4bd2971b7eff9cfe0d56430ba962710.tar.gz
hivex-9c4552b0d4bd2971b7eff9cfe0d56430ba962710.tar.xz
hivex-9c4552b0d4bd2971b7eff9cfe0d56430ba962710.zip
Increase HIVEX_MAX_SUBKEYS to 15000.
Windows 7 registry has a hive key which contains 11908 subkeys, larger than the existing limit (10000). The key is: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners
-rw-r--r--lib/hivex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hivex.c b/lib/hivex.c
index 91d3b12..43e989d 100644
--- a/lib/hivex.c
+++ b/lib/hivex.c
@@ -56,7 +56,7 @@
#include "byte_conversions.h"
/* These limits are in place to stop really stupid stuff and/or exploits. */
-#define HIVEX_MAX_SUBKEYS 10000
+#define HIVEX_MAX_SUBKEYS 15000
#define HIVEX_MAX_VALUES 1000
#define HIVEX_MAX_VALUE_LEN 1000000
#define HIVEX_MAX_ALLOCATION 1000000