Files
twx-linux/fs/cifs
Arnd Bergmann 9480368828 cifs: silence compiler warnings showing up with gcc-8.0.0
[ Upstream commit ade7db991b ]

This bug was fixed before, but came up again with the latest
compiler in another function:

fs/cifs/cifssmb.c: In function 'CIFSSMBSetEA':
fs/cifs/cifssmb.c:6362:3: error: 'strncpy' offset 8 is out of the bounds [0, 4] [-Werror=array-bounds]
   strncpy(parm_data->list[0].name, ea_name, name_len);

Let's apply the same fix that was used for the other instances.

Fixes: b2a3ad9ca5 ("cifs: silence compiler warnings showing up with gcc-4.7.0")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:48:56 +02:00
..
…
…
…
…
…
…
2017-05-20 14:27:01 +02:00
2015-06-27 20:23:32 -07:00
…
2018-02-16 20:09:39 +01:00
…
…
2017-02-09 08:02:45 +01:00
2017-06-29 12:48:51 +02:00
2017-05-08 07:46:01 +02:00
2017-10-18 09:20:40 +02:00
2018-04-13 19:50:04 +02:00
2017-09-07 08:34:09 +02:00
2017-05-08 07:46:01 +02:00
2017-05-08 07:46:01 +02:00
…
2017-05-08 07:46:01 +02:00