-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: initialize scratch buffer (#752)
Previously, the code took a reference to uninitialized memory, which is undefined behavior. Allocating zeroed memory is relatively cheap, so the scratch buffer allocates zeroed memory to initialize the memory. Co-authored-by: Andrew Gazelka <andrew.gazelka@gmail.com>
- Loading branch information
1 parent
3aac1a2
commit 7afedab
Showing
2 changed files
with
23 additions
and
36 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