summaryrefslogtreecommitdiffstats
path: root/net/link_local.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-13 15:55:20 -0700
committerSimon Glass <sjg@chromium.org>2018-11-29 09:30:05 -0700
commitb847c1424318c6a0b7aab14e465d7e253b162d31 (patch)
treec9ec260d70d07f99e5bc96d4109d698c131db5bb /net/link_local.h
parent1180030d12e0c4f03522fa99f730e724845210fc (diff)
downloadu-boot-b847c1424318c6a0b7aab14e465d7e253b162d31.tar.gz
u-boot-b847c1424318c6a0b7aab14e465d7e253b162d31.tar.xz
u-boot-b847c1424318c6a0b7aab14e465d7e253b162d31.zip
sandbox: Use memmove() to move overlapping regions
The use of strcpy() to remove characters at the start of a string is safe in U-Boot, since we know the implementation. But in os.c we are using the C library's strcpy() function, where this behaviour is not permitted. Update the code to use memmove() instead. Reported-by: Coverity (CID: 173279) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'net/link_local.h')
0 files changed, 0 insertions, 0 deletions