]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: fix a complaint about a printf buffer overrun
authorDarrick J. Wong <djwong@kernel.org>
Wed, 18 May 2022 02:48:07 +0000 (22:48 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 18 May 2022 02:48:07 +0000 (22:48 -0400)
commit75ff9c671d4e0e6c7ee498e10bcdb40ce37a62c1
tree0e1817969f94649b0383528d1768d031fc3ad481
parentc74f0468be45974e15ae70d866228441225b617a
xfs_db: fix a complaint about a printf buffer overrun

gcc 11 warns that stack_f doesn't allocate a sufficiently large buffer
to hold the printf output.  I don't think the io cursor stack is really
going to grow to 4 billion levels deep, but let's fix this anyway.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/io.c