Skip to content

BUG: Current way of caching is unsafe #4038

Open
@ksagiyam

Description

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:

key = _as_hexdigest(*k), func.__qualname__
, but this is unsafe; we could pull the wrong compiled kernel in case of hash collision.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions