Skip to content

Increase line buffer size to 1024 in LoadLFListSingle#3091

Merged
salix5 merged 1 commit into
masterfrom
salix5-patch-1
May 21, 2026
Merged

Increase line buffer size to 1024 in LoadLFListSingle#3091
salix5 merged 1 commit into
masterfrom
salix5-patch-1

Conversation

@salix5

@salix5 salix5 commented May 21, 2026

Copy link
Copy Markdown
Collaborator

It should be longer than any valid line.
The behavior of a line longer than 1024 is undefined.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts LF list configuration parsing to tolerate longer lines when reading lflist.conf, reducing the chance of truncation during fgets() in DeckManager::LoadLFListSingle.

Changes:

  • Increased the linebuf stack buffer used by std::fgets() from 256 to 1024 bytes in LoadLFListSingle.

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

@salix5 salix5 merged commit 4f2069d into master May 21, 2026
33 of 34 checks passed
@salix5 salix5 deleted the salix5-patch-1 branch May 21, 2026 12:33
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