diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2020-05-06 08:29:48 +0300 |
---|---|---|
committer | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2020-09-29 09:12:57 -0400 |
commit | 5c9b955fdc55e3cd4ba4696dbd1eb7fcb19c7a12 (patch) | |
tree | de9c2954f67e3ebdbdd7d9ca28506dca99760465 /xlators/features/qemu-block/src/clock-timer.c | |
parent | 24d35b7d031dd34ceae4816087a49038033552c8 (diff) |
features/bit-rot: invalid snprintf() buffer size
Found with clang-10 -Wfortify-source:
bit-rot-scrub.c:1802:15: warning: 'snprintf' size argument is too large;
destination buffer has size 32, but size argument is 4096 [-Wfortify-source]
len = snprintf(key, PATH_MAX, "quarantine-%d", j);
^
bit-rot-scrub.c:1813:9: warning: 'snprintf' size argument is too large;
destination buffer has size 32, but size argument is 4096 [-Wfortify-source]
snprintf(main_key, PATH_MAX, "quarantine-%d", tmp_count);
Change-Id: I9b9c09ef2223ed181d81215154345de976b82f13
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Fixes: #1221
Diffstat (limited to 'xlators/features/qemu-block/src/clock-timer.c')
0 files changed, 0 insertions, 0 deletions