In perl.git, the branch smoke-me/new_hashes has been updated <http://perl5.git.perl.org/perl.git/commitdiff/c87c82e7d1bd87252a3e0dc3dacdf747742fcc8f?hp=dc59bdf6281529d6f889a0a9a6a69be771b9fc73>
- Log ----------------------------------------------------------------- commit c87c82e7d1bd87252a3e0dc3dacdf747742fcc8f Author: Yves Orton <[email protected]> Date: Thu Mar 23 22:17:07 2017 +0100 use correct define when calculating total size for hash state This just happened to work with Zaphod32, as its state and seed are the same size, and when I cleaned things up for commit, I accidentally disabled the SBOX wrapper at the same time I was testing the StadtX behavior, so I never noticed the oversight. Using the correct define fixes the segv with StadtX. ----------------------------------------------------------------------- Summary of changes: hv_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hv_func.h b/hv_func.h index e492b8c7f5..4453220ed2 100644 --- a/hv_func.h +++ b/hv_func.h @@ -86,7 +86,7 @@ #define _PERL_HASH_SEED_BYTES ( __PERL_HASH_SEED_BYTES + ( 3 * sizeof(U32) ) ) #define _PERL_HASH_STATE_BYTES \ - ( __PERL_HASH_SEED_BYTES + ( ( 1 + ( 256 * SBOX32_MAX_LEN ) ) * sizeof(U32) ) ) + ( __PERL_HASH_STATE_BYTES + ( ( 1 + ( 256 * SBOX32_MAX_LEN ) ) * sizeof(U32) ) ) #define _PERL_HASH_SEED_STATE(seed,state) STMT_START { \ __PERL_HASH_SEED_STATE(seed,state); \ -- Perl5 Master Repository
