diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-04-22 18:33:42 +0200 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2019-05-02 14:40:27 +0200 |
commit | 4cc168eaf3b67d76547fb420c22abe22a3c86003 (patch) | |
tree | 7b91471f46b196867f6c5c195c63510eb6879b9e /scripts/gcc-x86_64-has-stack-protector.sh | |
parent | gdbstub: mark expected switch fall-throughs (diff) | |
download | linux-4cc168eaf3b67d76547fb420c22abe22a3c86003.tar.xz linux-4cc168eaf3b67d76547fb420c22abe22a3c86003.zip |
gdbstub: Replace strcpy() by strscpy()
The strcpy() function is being deprecated. Replace it by the safer
strscpy() and fix the following Coverity warning:
"You might overrun the 1024-character fixed-size string remcom_in_buffer
by copying cmd without checking the length."
Addresses-Coverity-ID: 138999 ("Copy into fixed size buffer")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'scripts/gcc-x86_64-has-stack-protector.sh')
0 files changed, 0 insertions, 0 deletions