Skip to content

Commit

Permalink
Fix nasa#491, increase UT assert buffer sizes
Browse files Browse the repository at this point in the history
The buffer for context info increases from 128 to 256 bytes
and the total report buffer to 320 bytes.
  • Loading branch information
jphickey committed Jun 8, 2020
1 parent 3604387 commit 909d63a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ut_assert/src/utassert.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ bool UtAssert(bool Expression, const char *Description, const char *File, uint32
bool UtAssertEx(bool Expression, UtAssert_CaseType_t CaseType, const char *File, uint32 Line, const char *MessageFormat, ...)
{
va_list va;
char FinalMessage[128];
char FinalMessage[256];

++UT_SegmentCounters.TotalTestCases;

Expand Down
2 changes: 1 addition & 1 deletion ut_assert/src/utbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void UT_BSP_DoReport(const char *File, uint32 LineNum, uint32 SegmentNum, uint32
{
uint32 FileLen;
const char *BasePtr;
char ReportBuffer[128];
char ReportBuffer[320];

FileLen = strlen(File);
BasePtr = File + FileLen;
Expand Down

0 comments on commit 909d63a

Please # to comment.