Re: [PATCH net-next] qed: Fix copying 2 strings

2018-04-24 Thread David Miller
From: Denis Bolotin Date: Tue, 24 Apr 2018 15:32:53 +0300 > The strscpy() was a recent fix (net: qed: use correct strncpy() size) to > prevent passing the length of the source buffer to strncpy() and guarantee > null termination. > It misses the goal of overwriting only the first 3 characters in

[PATCH net-next] qed: Fix copying 2 strings

2018-04-24 Thread Denis Bolotin
The strscpy() was a recent fix (net: qed: use correct strncpy() size) to prevent passing the length of the source buffer to strncpy() and guarantee null termination. It misses the goal of overwriting only the first 3 characters in "???_BIG_RAM" and "???_RAM" while keeping the rest of the string. Us