List of Phobos functions that allocate memory?

Marc Schütz" <schuetzm at gmx.net> Marc Schütz" <schuetzm at gmx.net>
Fri Feb 7 06:50:12 PST 2014


On Friday, 7 February 2014 at 08:30:35 UTC, Walter Bright wrote:
> On 2/6/2014 7:08 PM, bearophile wrote:
>> That's why some languages have changed their sorting and 
>> hashing routines to
>> make them a little slower but safer on default.
>
> DoS attack resistance requires faster code, not slower code.

The specific problem was that it was possible to provoke hash 
collisions by sending carefully crafted input, causing the 
hash-tables to degrade to linked lists. The small performance 
penalty of using collision-resistant hashes is certainly worth it 
in this case.


More information about the Digitalmars-d mailing list