[RTEMS Project] #4491: TraceWriterQEMU.cc: Buffer not null terminated issue spotted by Coverity
RTEMS trac
trac at rtems.org
Tue Aug 10 14:57:35 UTC 2021
#4491: TraceWriterQEMU.cc: Buffer not null terminated issue spotted by Coverity
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: tool | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1506207: Buffer not null terminated
{{{
CID 1506207 (#1 of 1): Buffer not null terminated (BUFFER_SIZE)3.
buffer_size: Calling strncpy with a source string whose length (12 chars)
is greater than or equal to the size argument (12) will fail to null-
terminate header.magic.
109 strncpy( header.magic, QEMU_TRACE_MAGIC, sizeof(header.magic) );
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4491>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list