]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs.xfs: avoid potential overflowing expression in xfs_mkfs.c
authorBill O'Donnell <bodonnel@redhat.com>
Fri, 14 Jun 2024 16:00:13 +0000 (11:00 -0500)
committerCarlos Maiolino <cem@kernel.org>
Mon, 17 Jun 2024 11:54:38 +0000 (13:54 +0200)
commit0e95efd2f07af7942e8dbd83727cf422bff36aa6
tree7902071e912b6b766c7e2404fcdaed6c7a82c229
parentb3821ed05c8d1309ffcf6ed018fff5bef917b4b5
mkfs.xfs: avoid potential overflowing expression in xfs_mkfs.c

Cast max_tx_bytes to uint64_t to avoid overflowing expression in
calc_concurrency_logblocks().

Coverity-id: 1596603

Signed-off-by: Bill O'Donnell <bodonnel@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
mkfs/xfs_mkfs.c