summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dquot.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-10-26 11:58:26 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-29 10:20:33 +0200
commit4776ae328ccb568ac5023d7d0e7331b66bb03913 (patch)
tree9736c6825686d6d2034bb1da7fe7975bfb494f01 /fs/xfs/xfs_dquot.h
parent2f55a03891543ffffceddfc6b2104af3cb79af92 (diff)
downloadlinux-stable-4776ae328ccb568ac5023d7d0e7331b66bb03913.tar.gz
linux-stable-4776ae328ccb568ac5023d7d0e7331b66bb03913.tar.bz2
linux-stable-4776ae328ccb568ac5023d7d0e7331b66bb03913.zip
xfs: Use scnprintf() for avoiding potential buffer overflow
commit 17bb60b74124e9491d593e2601e3afe14daa2f57 upstream. 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> Acked-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandan.babu@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_dquot.h')
0 files changed, 0 insertions, 0 deletions