Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a condition in utilities::logger::append_newline
The previous condition assumes enough space to append an extra newline followed by \0. If we already have a full message buffer, appending would overflow and the \0 would corrupt some adjacent variable. If this adjacent variable happens to be the guard from the calling function, it would be corrupted and fails to unlock its lock, causing other logging components to stuck forever waiting for that lock.