Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The strerror_buf is way too large, so instead of using a separate buffer for just this string, reuse the already existing buffer. Increase the buffer size to cover the maximum errno string. Add a unit test to verify that none of the errno values are cut off in the async_safe_format_buffer function when passing %m. Bug: 274474681 Test: New unit test passes. Test: Changing the buffer to a small value and verify that the test fails. Change-Id: I4cb4652709582a8a6b958e12de5d923ec950e6b6
- Loading branch information
1 parent
6573263
commit 0bdffb1
Showing
2 changed files
with
20 additions
and
3 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