[rtems-tools commit] TraceWriterQEMU.cc: Remove unterminated string

Joel Sherrill joel at rtems.org
Fri Aug 20 17:46:59 UTC 2021


Module:    rtems-tools
Branch:    master
Commit:    f316d1607ff6f31bb39b9c62a057fc57374b8bd5
Changeset: http://git.rtems.org/rtems-tools/commit/?id=f316d1607ff6f31bb39b9c62a057fc57374b8bd5

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Wed Aug 11 17:23:02 2021 -0400

TraceWriterQEMU.cc: Remove unterminated string

Replaced header.magic with QEMU_TRACE_MAGIC to get rid of "String not
null terminated" Coverity issue.

CID 1506203: String not null terminated

Closes #4486

---

 tester/covoar/TraceWriterQEMU.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tester/covoar/TraceWriterQEMU.cc b/tester/covoar/TraceWriterQEMU.cc
index c417745..177b77f 100644
--- a/tester/covoar/TraceWriterQEMU.cc
+++ b/tester/covoar/TraceWriterQEMU.cc
@@ -121,7 +121,7 @@ namespace Trace {
     }
 
     if (verbose)
-      std::cerr << "magic = " << header.magic << std::endl
+      std::cerr << "magic = " << QEMU_TRACE_MAGIC << std::endl
                 << "version = " << header.version << std::endl
                 << "kind = " << header.kind << std::endl
                 << "sizeof_target_pc = " << header.sizeof_target_pc << std::endl



More information about the vc mailing list