Changeset 529402f5 in rtems

Timestamp:
10/12/20 16:01:45 (4 years ago)
Author:
Frank Kühndel <frank.kuehndel@…>
Branches:
master
Children:
b03c103
Parents:
2361b2c
git-author:
Frank Kühndel <frank.kuehndel@…> (10/12/20 16:01:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/15/20 17:14:48)
Message:

shell/shell.c: Fix illegal string copy

This is an illegal use of strcpy() because one is not allowed to
use this function with overlapping source and destination buffers;
whereas memmove() is explicitly designed to handle such cases.

The copiler warning was:

../../../cpukit/libmisc/shell/shell.c:626:13: warning:
'strcpy' accessing between 1 and 2147483645 bytes at offsets
0 and [1, 2147483647] may overlap up to 2147483644 bytes at
offset [1, 2147483644] [-Wrestrict]

(No files)

Note: See TracChangeset for help on using the changeset viewer.