Andreas Gruenbacher 204c0300c4 gfs2: Switch from strlcpy to strscpy
Switch from strlcpy to strscpy and make sure that @count is the size of
the smaller of the source and destination buffers.  This prevents
reading beyond the end of the source buffer when the source string isn't
null terminated.

Found by a modified version of syzkaller.

Suggested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2022-08-26 15:27:06 +02:00
..
2022-08-11 13:11:49 -07:00
2019-07-03 14:45:18 +02:00
2021-06-29 10:56:51 +02:00
2022-08-06 14:44:49 -07:00
2022-08-08 20:04:35 -07:00
2022-08-25 17:11:14 +02:00
2022-06-29 16:59:07 +02:00
2022-05-09 23:12:33 -04:00
2022-08-11 13:11:49 -07:00
2022-08-03 10:35:43 -07:00
2022-08-06 14:44:49 -07:00
2022-08-06 14:44:49 -07:00
2022-02-02 07:49:59 -07:00
2022-08-25 17:11:14 +02:00
2022-06-28 20:38:15 +02:00