u-boot-brain/arch/sandbox/cpu
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.c sandbox: remove stray DEBUG 2018-11-20 19:14:22 -07:00
eth-raw-os.c sandbox: Use malloc() and free() from os layer 2018-11-26 08:25:37 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
os.c sandbox: Use memmove() to move overlapping regions 2018-11-29 09:30:05 -07:00
sdl.c sandbox: Enable sound 2018-11-29 09:30:05 -07:00
spl.c sandbox: Boot in U-Boot through the standard call 2018-11-26 08:25:37 -05:00
start.c sandbox: Add a new 'sb' command 2018-11-26 08:25:36 -05:00
state.c sandbox: Remove the old memory file later 2018-10-09 04:40:26 -06:00
u-boot-spl.lds sandbox: Add an option to display of-platdata in SPL 2018-11-26 08:25:35 -05:00
u-boot.lds Partially revert "efi_loader: Rename sections to allow for implicit data" 2018-08-23 16:17:41 -04:00