commit | c28481a88cb38a3e1b7b533f53eb82e5e34f7597 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 09:37:40 2020 +0100 |
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | Thu May 28 19:51:51 2020 -0700 |
tree | 7bb4859b0b8fdd4f865359cdb60f5cf7027c4e99 | |
parent | 394f9ebf92c899b42207d4e71465869656981ba1 [diff] |
i40e: Use scnprintf() for avoiding potential buffer overflow Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>