Skip to content

Conversation

@liutgnu
Copy link
Contributor

@liutgnu liutgnu commented Feb 25, 2025

The default length of path is 512, but the strcat() is used without check if path is overflowed, otherwise a segfault is observed on some aarch64 machines. This patch will use snprintf instead of strcat for the buffer length checking.

The default length of path is 512, but the strcat() is used without
check if path is overflowed, otherwise a segfault is observed on
some aarch64 machines. This patch will use snprintf instead of strcat
for the buffer length checking.

Signed-off-by: Tao Liu <[email protected]>
@nhorman nhorman merged commit 38ed2b5 into Irqbalance:master Feb 25, 2025
10 checks passed
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