Skip to content

Conversation

@JacobBarthelmeh
Copy link
Contributor

ZD20993

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds input validation for the Windows terminal resize operation to prevent buffer overflow issues. The changes include increasing the buffer size and adding a sanity check on the snprintf return value before writing to the pseudo console.

  • Increased buffer size from 20 to 26 bytes to accommodate the VT control sequence
  • Added validation to check snprintf return value before calling WriteFile
  • Restructured error handling to prevent writing potentially truncated data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dgarske dgarske requested a review from ejohnstown January 9, 2026 18:09
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.

4 participants