On 2024-05-30 14:56:50 -0600, Todd C. Miller wrote:
> This is not a bug.  An awk associative array is effectively a hash
> table so when you iterate over it like this you are not guaranteed
> to get things in any particular order.  In fact, our awk, mawk and
> gawk all produce different output when given that snippet.

Also, various languages that used to use predictable hash orders now
randomize the key order to avoid Algorithmic Complexity Attacks that
may allow an attacker to supply input crafted to consume lots of CPU
memory or both.

http://man.openbsd.org/man1/perlsec.1#Algorithmic_Complexity_Attacks

Reply via email to