commit | f2af76beae34358febe3aaef4e343ad88a4f1518 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Nov 13 15:55:20 2018 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Nov 29 09:30:05 2018 -0700 |
tree | c9ec260d70d07f99e5bc96d4109d698c131db5bb | |
parent | 27cee446a60182ebf66b69275139ee50a6c2dd0f [diff] |
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>