Skip to content

KEYBUFFER - Unlimited memory allocation? #2

@RoboticRice

Description

@RoboticRice

Currently, KEYBUFFER is a dynamic array that increases in size for keypresses until "Enter" key is pressed. If someone dropped a tape measure on the keyboard and kept the "A" key pressed for 5 hours, would that cause a massive amount of memory to be dedicated to this array that only requires 6 char?

Need to implement max size on the array when pushing items to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions