Re: [PATCH] mpssd: fix buffer overflow warning

From: Ashutosh Dixit
Date: Fri May 20 2016 - 01:07:45 EST


On Fri, May 20 2016 at 12:54:51 AM, Mike Danese <mikedanese@xxxxxxxxxx> wrote:
> The compilation emits a warning in function âsnprintfâ,
> inlined from âset_cmdlineâ at
> ../Documentation/mic/mpssd/mpssd.c:1541:9:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10:
> warning: call to __builtin___snprintf_chk will always overflow
> destination buffer
>
> This was introduced in commit f4a66c204482 ("misc: mic: Update MIC host
> daemon with COSM changes") and is fixed by reverting the changes to the
> size argument of these snprintf statements.

Thanks for the patch, the fix is fine.