Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

Potential issues when deleting entries #242

@virtuald

Description

@virtuald

I'm not really expecting this to be fixed, but putting it here so it can be thought about.

If an uninformed user sets/deletes the same key over and over again, in Storage m_idmap will eventually become very large because ids are never reused. Additionally, if m_idmap gets over 65535 entries, then I think all sorts of bad things happen.

I wonder if there's any harm in reusing an ID after a key gets deleted? Right now the id is used to track whether something is assigned, but another variable could be used for that.

Specifically excluded is the case of a user creating lots of random keys and deleting them -- while it would definitely create problems, this usage seems fairly unreasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions