Skip to content

Find and fix bugs - #2

Draft
sonthepham-dev wants to merge 11 commits into
masterfrom
cursor/find-and-fix-bugs-3154
Draft

Find and fix bugs#2
sonthepham-dev wants to merge 11 commits into
masterfrom
cursor/find-and-fix-bugs-3154

Conversation

@sonthepham-dev

Copy link
Copy Markdown
Owner

Fix multiple buffer overflow vulnerabilities and uninitialized static variables to improve stability and memory safety.

This PR addresses several critical bugs:

  • Adds bounds checking to insertState, insertKey, and restoreLastTypingState functions to prevent buffer overflows.
  • Initializes all static variables in Engine.cpp to prevent undefined behavior.
  • Replaces a direct vector assignment with a proper copy operation to ensure data integrity.
  • Introduces a CHR_SAFE macro for safer array access with bounds checking.

Open in WebOpen in CursorOpen Docs

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants