Skip to content

Can add characters beyond the length limit when inputting text if the limit is already exeeded #3354

@LeeSpork

Description

@LeeSpork

To Reproduce

  1. Create a save file
  2. Outside of the game, rename the save file to something over 200 characters long
  3. Load the save file in-game
  4. Click save game
  5. In the browse prompt window, click the text entry box and start typing.
  6. The game eventually crashes due to string buffer overflow exception.

Expected behaviour
No characters should be added when the length limit is already exceeded.

Additional context
TextInput.cpp L19 uses == instead of >=, which is likely the cause of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions