-
-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
When `_alloc` is equal to `_size`, the `is_null_terminated` method will point to arbitrary memory when checking for the `0` byte. This PR makes that method first check that `_alloc != _size` before reading the `_size` byte of the `Pointer[U8]`. Fixes #1425
- Loading branch information
1 parent
868138d
commit c54d46f
Showing
2 changed files
with
8 additions
and
1 deletion.
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