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 /perlapi.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 'perlapi.h')
-rw-r--r-- | perlapi.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -398,6 +398,10 @@ END_EXTERN_C #define PL_multi_start (*Perl_Imulti_start_ptr(aTHX)) #undef PL_multiline #define PL_multiline (*Perl_Imultiline_ptr(aTHX)) +#undef PL_new_hash_seed +#define PL_new_hash_seed (*Perl_Inew_hash_seed_ptr(aTHX)) +#undef PL_new_hash_seed_set +#define PL_new_hash_seed_set (*Perl_Inew_hash_seed_set_ptr(aTHX)) #undef PL_nexttoke #define PL_nexttoke (*Perl_Inexttoke_ptr(aTHX)) #undef PL_nexttype |