summaryrefslogtreecommitdiffstats
path: root/tester/covoar/TraceWriterQEMU.cc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-08-11 17:23:02 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-20 12:47:02 -0500
commitf316d1607ff6f31bb39b9c62a057fc57374b8bd5 (patch)
treec15757c0d41789bd155691b9db5aeb09569c23b8 /tester/covoar/TraceWriterQEMU.cc
parentGcovData.cc: Fix out-of-bounds access errors (diff)
downloadrtems-tools-f316d1607ff6f31bb39b9c62a057fc57374b8bd5.tar.bz2
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
Diffstat (limited to 'tester/covoar/TraceWriterQEMU.cc')
-rw-r--r--tester/covoar/TraceWriterQEMU.cc2
1 files changed, 1 insertions, 1 deletions
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