u-boot/arch/sandbox
Simon Glass b847c14243 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>
2018-11-29 09:30:05 -07:00
..
cpu sandbox: Use memmove() to move overlapping regions 2018-11-29 09:30:05 -07:00
dts dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
include/asm spl: Add support for passing handoff info to U-Boot proper 2018-11-26 08:25:37 -05:00
lib efi: sandbox: Add required linker sections 2018-06-03 15:27:21 +02:00
config.mk sandbox: Build with -fPIC 2018-09-18 00:01:18 -06:00
Kconfig sandbox: Add 64-bit sandbox 2018-02-18 15:53:48 -07:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00