summaryrefslogtreecommitdiff
path: root/lib/win_minmax.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-11-18 19:53:45 +0100
committerAndrew Morton <akpm@linux-foundation.org>2025-11-20 14:03:45 -0800
commit13db54aad7442852d57bd384305bc8c10a9dcd1f (patch)
tree0bd631227753e5c036f456661320217f1f519710 /lib/win_minmax.c
parent4022ba20050e8e2bb189155e0665b60953d7552c (diff)
ocfs2: replace deprecated strcpy with strscpy
strcpy() has been deprecated [1] because it performs no bounds checking on the destination buffer, which can lead to buffer overflows. Replace it with the safer strscpy(), and copy directly into '->rf_signature' instead of using the start of the struct as the destination buffer. Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1] Link: https://lkml.kernel.org/r/20251118185345.132411-3-thorsten.blum@linux.dev Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Mark Fasheh <mark@fasheh.com> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Jun Piao <piaojun@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/win_minmax.c')
0 files changed, 0 insertions, 0 deletions