Files
mirror_zfs/cmd
Rob Norris c00c085bfb config: use -Wno-format-truncation globally
-Wformat-truncation looks for places where the return code of snprintf()
is unchecked and the provided buffer might be too short. This is based
on a heuristic that can change between compiler versions.

It has been seen to get this wrong in ddt_object_name(), leading to
DDT_NAMELEN being increased somewhat arbitrarily.

There's no good reason to have this warning enabled, so here we disable
it everywhere. Truncation may be undesirable, but snprintf() is
guaranteed to emit a trailing null, so at worst we get a short string,
not a buffer overrun.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15908
2024-02-26 12:23:55 -08:00
..
2023-11-08 10:19:41 -08:00
2024-02-08 09:19:52 -08:00
2024-02-08 09:19:52 -08:00
2024-02-08 09:19:52 -08:00
2023-03-14 15:25:50 -07:00
2023-05-25 13:51:53 -07:00
2023-11-08 10:19:41 -08:00