From 80fdd67a6c28a962164697ece12570142331ea44 Mon Sep 17 00:00:00 2001 From: skliper <47541139+skliper@users.noreply.github.com> Date: Mon, 29 Jun 2020 16:15:35 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 700416a77..9870446e0 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ UT Hook functions now have the capability to get argument values by name, which - Minor updates (see ) -### **_OFFICIAL RELEASE: 5.0.0_** +### **_OFFICIAL RELEASE: 5.0.0 - Aquila_** - Changes are detailed in [cFS repo](https://github.com/nasa/cFS) release 6.7.0 documentation - Released under the Apache 2.0 license From 2ad28d0a5e3b3c1d7a8ea2de6c7e979e4a259779 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 8 Jul 2020 08:37:41 -0400 Subject: [PATCH 2/2] Fix #534, adjust UT assert buffer sizes Avoids a possible truncation in snprintf call. --- ut_assert/src/utassert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ut_assert/src/utassert.c b/ut_assert/src/utassert.c index fe177de0d..954ceaf1f 100644 --- a/ut_assert/src/utassert.c +++ b/ut_assert/src/utassert.c @@ -42,7 +42,7 @@ UtAssert_CaseType_t DefaultContext = UTASSERT_CASETYPE_FAILURE; UtAssert_TestCounter_t UT_SegmentCounters = { 0 }; UtAssert_TestCounter_t UT_TotalCounters = { 0 }; -static char CurrentSegment[128]; +static char CurrentSegment[64]; /* * Function Definitions @@ -76,7 +76,7 @@ void UtAssert_DoReport(const char *File, uint32 LineNum, uint32 SegmentNum, uint void UtAssert_DoTestSegmentReport(const char *SegmentName, const UtAssert_TestCounter_t *TestCounters) { - char ReportBuffer[128]; + char ReportBuffer[144]; snprintf(ReportBuffer, sizeof(ReportBuffer), "%02u %-20s TOTAL::%-4u PASS::%-4u FAIL::%-4u MIR::%-4u TSF::%-4u N/A::%-4u\n",