diff options
| author | 2024-11-15 16:54:19 +0530 | |
|---|---|---|
| committer | 2024-11-18 17:34:36 +0100 | |
| commit | c152737be22b103bff5987e03136a69710c2e68f (patch) | |
| tree | 04a308230bcdbacc9ebdfb88d38f4c57b562c1c5 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | ceph: Use str_true_false() helper in status_show() (diff) | |
ceph: Use strscpy() instead of strcpy() in __get_snap_name()
strcpy() performs no bounds checking on the destination buffer. This
could result in linear overflows beyond the end of the buffer, leading
to all kinds of misbehaviors [1].
This fixes checkpatch warning:
WARNING: Prefer strscpy over strcpy
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy
[ idryomov: formatting ]
Signed-off-by: Abdul Rahim <abdul.rahim@myyahoo.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
