Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't store null terminator in string buffer (#8)
We were not accounting for the null terminator in the string allocation, meaning that every string copy overflowed its buffer by one byte. Usually the null terminator ended up getting overwritten by the first character of the next string copied into the buffer, but occasionally, due to concurrency, the null terminator from the first string could overwrite the first character of the second. Since the null terminator is not actually necessary, this commit removes it from the string buffer. Now the allocation size is correct. Co-authored-by: Evan Shaw <[email protected]>
- Loading branch information