summaryrefslogtreecommitdiff
path: root/intrpvar.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2003-10-16 21:10:27 +0000
committerNicholas Clark <nick@ccl4.org>2003-10-16 21:10:27 +0000
commit4b5190b5321b9b9e2ec46674b256120d4fdab72a (patch)
tree1e544d93aaa7feaa02a7944af04463c96a8acd7e /intrpvar.h
parent4e380990fe579cbec68c15cb8ee072f2d6644a71 (diff)
downloadperl-4b5190b5321b9b9e2ec46674b256120d4fdab72a.tar.gz
Plan C for foiling the algorithmic complexity attack
(based on Chip's plan A (binary compatibility with 5.8.0 and 5.8.1), Chip's plan B (do something new inside the hv functions) and introspective sort) Provides infrastructure for hashes to change their hash function if necessary, and code in hsplit to detect pathalogical data and instigate a random rehashing. Needs refinement. Let's see how much smoke it creates. p4raw-id: //depot/perl@21471
Diffstat (limited to 'intrpvar.h')
-rw-r--r--intrpvar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intrpvar.h b/intrpvar.h
index 6a34ea4e67..09709ea123 100644
--- a/intrpvar.h
+++ b/intrpvar.h
@@ -531,6 +531,10 @@ PERLVAR(IDBassertion, SV *)
PERLVARI(Icv_has_eval, I32, 0) /* PL_compcv includes an entereval or similar */
+PERLVARI(Inew_hash_seed, UV, 0) /* 582 hash initializer */
+
+PERLVARI(Inew_hash_seed_set, bool, FALSE) /* 582 hash initialized? */
+
/* New variables must be added to the very end, before this comment,
* for binary compatibility (the offsets of the old members must not change).
* (Don't forget to add your variable also to perl_clone()!)