Skip to content

2026PKUCourseHW5:example 7 and example 8 in homework#361

Open
frostmoss wants to merge 2 commits intoabacusmodeling:developfrom
frostmoss:fix-buffer-issue
Open

2026PKUCourseHW5:example 7 and example 8 in homework#361
frostmoss wants to merge 2 commits intoabacusmodeling:developfrom
frostmoss:fix-buffer-issue

Conversation

@frostmoss
Copy link
Copy Markdown

Fixed the buffer overflow risk in source/source_pw/module_ofdft/ml_tools/input.cpp at line 12 by replacing the fixed-size char word[80] with std::string. This ensures safety for long input strings.

@frostmoss frostmoss changed the title Refactor: replace char array with std::string in input.cpp 2026PKUCourseHW5:replace char array with std::string in input.cpp Mar 28, 2026
@frostmoss frostmoss changed the title 2026PKUCourseHW5:replace char array with std::string in input.cpp 2026PKUCourseHW5:example 7 and example 8 in homework Mar 28, 2026
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.

1 participant