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 08:52:44 -0400 |
commit | 12020998c285157e3c4ee6f17e709d35349e3e12 (patch) | |
tree | a741fd6d470a251d0875fc804ef90455f49ac927 /libglusterfs/src/fd-lk.h | |
parent | b4f19c7b1c34962b2c8d87d78d7c27bb54ab5e84 (diff) |
features/bit-rot: invalid snprintf() buffer sizerelease-7
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>
Fixes: #1221
Diffstat (limited to 'libglusterfs/src/fd-lk.h')
0 files changed, 0 insertions, 0 deletions