Whamcloud - gitweb
e4defrag: use snprintf to assure that there can't be a buffer overflow
authorTheodore Ts'o <tytso@mit.edu>
Wed, 1 May 2024 21:22:55 +0000 (17:22 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 May 2024 21:22:55 +0000 (17:22 -0400)
commitd04a708ecf955610654a2015de8657642857912d
tree9e4d754ac57b795daeaf09448adbc365097dd981
parent1b9e68e0ff22933d1bab5defa761268e904daf28
e4defrag: use snprintf to assure that there can't be a buffer overflow

The size of msg_buffer is carefully calculated so it can never
overflow, but it triggers a Coverity warning.  Use snprintf instead of
sprintf to silence the Coverity warning.

Addresses-Coverty-Bug: 1520603
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e4defrag.c