diff options
author | Nicholas Clark <nick@ccl4.org> | 2003-10-16 21:10:27 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2003-10-16 21:10:27 +0000 |
commit | 4b5190b5321b9b9e2ec46674b256120d4fdab72a (patch) | |
tree | 1e544d93aaa7feaa02a7944af04463c96a8acd7e /embedvar.h | |
parent | 4e380990fe579cbec68c15cb8ee072f2d6644a71 (diff) | |
download | perl-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 'embedvar.h')
-rw-r--r-- | embedvar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embedvar.h b/embedvar.h index a4f4a929bf..f58fae9e98 100644 --- a/embedvar.h +++ b/embedvar.h @@ -320,6 +320,8 @@ #define PL_multi_open (vTHX->Imulti_open) #define PL_multi_start (vTHX->Imulti_start) #define PL_multiline (vTHX->Imultiline) +#define PL_new_hash_seed (vTHX->Inew_hash_seed) +#define PL_new_hash_seed_set (vTHX->Inew_hash_seed_set) #define PL_nexttoke (vTHX->Inexttoke) #define PL_nexttype (vTHX->Inexttype) #define PL_nextval (vTHX->Inextval) @@ -624,6 +626,8 @@ #define PL_Imulti_open PL_multi_open #define PL_Imulti_start PL_multi_start #define PL_Imultiline PL_multiline +#define PL_Inew_hash_seed PL_new_hash_seed +#define PL_Inew_hash_seed_set PL_new_hash_seed_set #define PL_Inexttoke PL_nexttoke #define PL_Inexttype PL_nexttype #define PL_Inextval PL_nextval |