You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
creates a hash of a map, which is difficult in go, as the map doesn't have an explicit order in go. So it takes all keys, sorts them alphabetically, and then hashes the values.
But: it doesn't add the key to the values.
So the following two maps will have the same hash:
Added some security bugs found while adding the new functionalities.
They are here: #2507#2508#2509#2510
Also added some comments and fixed some typos.
This is another potential security error: the
hashMap
method here:cothority/evoting/lib/transaction.go
Line 109 in e0c9afb
creates a hash of a
map
, which is difficult in go, as themap
doesn't have an explicit order in go. So it takes all keys, sorts them alphabetically, and then hashes the values.But: it doesn't add the key to the values.
So the following two maps will have the same hash:
Fix: also add the
key
to the hash.The text was updated successfully, but these errors were encountered: