commit | 17bb60b74124e9491d593e2601e3afe14daa2f57 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 11:15:35 2020 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Thu Mar 12 07:58:13 2020 -0700 |
tree | 26dbeb5f5b4e5d37febca2fe6f617739e0b66912 | |
parent | 806d3909a57eae6282725d1f9059350932e90c35 [diff] |
xfs: 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> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>