-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current implementations do not count the length of empty strings correctly. The following buffer content "\0foo\0" is considered a string with length 4, because the iteration pointer is incremented before it is dereferenced to check for a null char. Replace the broken strlen functions with the implementation of musl libc.
- Loading branch information
1 parent
082ea79
commit c8db92b
Showing
2 changed files
with
8 additions
and
10 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