Re: [PATCH] drm/amd/display: Fix overflow/truncation from strncpy.

2018-07-20 Thread Harry Wentland
On 2018-07-20 10:17 AM, Nicholas Kazlauskas wrote: > [Why] > > New GCC warnings for stringop-truncation and stringop-overflow help > catch common misuse of strncpy. This patch suppresses these warnings > by fixing bugs identified by them. > > [How] > > Since the parameter passed for name in amdp

[PATCH] drm/amd/display: Fix overflow/truncation from strncpy.

2018-07-20 Thread Nicholas Kazlauskas
[Why] New GCC warnings for stringop-truncation and stringop-overflow help catch common misuse of strncpy. This patch suppresses these warnings by fixing bugs identified by them. [How] Since the parameter passed for name in amdpgu_dm_create_common_mode has no fixed length, if the string is >= DRM