-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current macro, which uses strncpy() and then forces a valid termination, triggers warnings under GCC 10. It can also cause an out-of-bounds write if size is 0. strlcpy() was added in glibc 2.38 (July 2023). Signed-off-by: Loren M. Lang <[email protected]> Signed-off-by: Aaron Conole <[email protected]>
- Loading branch information
1 parent
d24a1df
commit 96106e8
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters