Format truncation warning in UtAssert_DoTestSegmentReport
(Ubuntu 20.04)
#1241
Labels
unit-test
Tickets related to the OSAL unit testing (functional and/or coverage)
Describe the bug
A ubuntu 20.04 release job reveals that the current implementation of osal/ut_assert/CMakeFiles/ut_assert.dir/src/utassert.c/UtAssert_DoTestSegmentReport potentially truncates the output to fit in
ReportBuffer
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Passing workflow
Code snips
System observed on:
Ubuntu 20.04
Additional context
ReportBuffer
is currently implemented with size 144. UtAssert_DoTestSegmentReport may truncate the output to fit in the buffer. Attempting to writesnprintf
with 8 uint32 variables, 1 character array of size 64 namedSegmentName
, and 56 bytes of hard-coded strings (e.g. "TOTAL", "PASS", "FAIL", "MIR").Reporter Info
Justin Figueroa, ASRC Federal
The text was updated successfully, but these errors were encountered: