Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#4444 closed defect (fixed)

CID 1399727: Copy into fixed size buffer

Reported by: Harrison Gerber Owned by: Gedare Bloom
Priority: normal Milestone: 6.1
Component: rtems Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

In rtems_monitor_line_editor: A source buffer of statically unknown size is copied into a fixed-size destination buffer (CWE-120)

NOTE: Issue is more regarding source/dest overlapping with use of strcpy: needs change to use memory copy for overlapping source/dest

Change History (1)

comment:1 Changed on 05/28/21 at 22:00:54 by Harrison Edward Gerber <gerberhe11@…>

Resolution: fixed
Status: assignedclosed

In [changeset:"6a56fd9340e46766dc5b069f259e4c133c06f39a/rtems" 6a56fd9/rtems]:

cpukit/libmisc/monitor: Fix src/dest overlap of strcpy in mon-editor.c

See also CID 1399727

Closes #4444

Note: See TracTickets for help on using tickets.