Ignore:
Timestamp:
2014-10-16T17:50:59+13:00 (10 years ago)
Author:
ak19
Message:

From perl 5.18 onward, the iteration order over a map within a single process has been randomised. http://www.perlmonks.org/?node_id=1005122 and http://perldoc.perl.org/perlsec.html#Algorithmic-Complexity-Attacks However, this breaks searching a collection of simple text files, as the metadata and content get mixed up because of the order that items are iterated over in the map during ArchiveInfPlugin's read() changing within a single run of buildcol. To get it to be consistent within a single run, there's a new environment variable, which we now set. See https://metacpan.org/pod/release/RJBS/perl-5.18.0/pod/perldelta.pod#PERL_PERTURB_KEYS-environment-variable-added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bash

    r26794 r29372  
    334334# else we may in future need to update PERL5LIB with some other (further) locations
    335335fi
     336
     337# Perl >= v5.18.* randomises map iteration order within a process
     338export PERL_PERTURB_KEYS=0
Note: See TracChangeset for help on using the changeset viewer.