From b8130655cc13be5f3906992f6bd39b798278217e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 11 Sep 2021 17:01:39 -0400 Subject: [PATCH] comment --- doc/todo/optimise_by_converting_Map_to_HashMap.mdwn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/todo/optimise_by_converting_Map_to_HashMap.mdwn b/doc/todo/optimise_by_converting_Map_to_HashMap.mdwn index 49f8b3b322..448a26b2f1 100644 --- a/doc/todo/optimise_by_converting_Map_to_HashMap.mdwn +++ b/doc/todo/optimise_by_converting_Map_to_HashMap.mdwn @@ -5,3 +5,8 @@ parts with HashMap. The uses in AnnexRead especially. (Set and HashSet too.) --[[Joey]] + +> Note that HashMap perfomance can degrade if an attacker provides keys +> that collide. This has been used to DOS aeson parsing. (Which could +> affect a few parts of git-annex in theory). So if converting to HashMap, +> need to consider this. --[[Joey]]