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
It seems that we assume that hashing is perfect in some places. Specifically, here, we generate a sequence of 32 letters+numbers using md5 and directly use that as the disk/memory cache key:
I think that we have always assumed that hash collisions are so rare as to effectively never happen, and hence that this is safe "enough". For our disk caching we have to generate a hash because we need a unique file name.
Describe the bug
It seems that we assume that hashing is perfect in some places. Specifically, here, we generate a sequence of 32 letters+numbers using
md5
and directly use that as the disk/memory cache key:firedrake/pyop2/caching.py
Line 477 in f473388
The text was updated successfully, but these errors were encountered: