Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blf: don't assume that app text is null-terminated in the file.
When reading the text from an app text message, allocate a buffer one byte larger than the size of the message, and set that byte to '\0' after reading the message text, to ensure that the text is null-terminated and can be safely handed to routines that process C strings. Fixes #19084. (cherry picked from commit 8780332)
- Loading branch information