diff options
author | Jason Wang <[email protected]> | 2021-12-22 11:27:07 +0800 |
---|---|---|
committer | Corey Minyard <[email protected]> | 2022-01-17 09:10:46 -0600 |
commit | d134ad2574a1c9b5c34659709769bdb25295fd25 (patch) | |
tree | 6ae3a63b1365be410700a7963a2547da24c4c22e /net/lapb/lapb_timer.c | |
parent | 7281599201c3336e350406781e7d88ca92453727 (diff) |
ipmi: ssif: replace strlcpy with strscpy
The strlcpy should not be used because it doesn't limit the source
length. So that it will lead some potential bugs.
But the strscpy doesn't require reading memory from the src string
beyond the specified "count" bytes, and since the return value is
easier to error-check than strlcpy()'s. In addition, the implementation
is robust to the string changing out from underneath it, unlike the
current strlcpy() implementation.
Thus, replace strlcpy with strscpy.
Signed-off-by: Jason Wang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions