1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/torture/basic
Andreas Schneider 7a00d90d66 s4:torture: Use strlcpy() in gen_name()
../source4/torture/basic/mangle_test.c: In function ‘gen_name’:
../source4/torture/basic/mangle_test.c:148:3: error: ‘strncpy’ output
    truncated before terminating nul copying 5 bytes from a string of the
    same length [-Werror=stringop-truncation]
   strncpy(p, "ABCDE", 5);
   ^~~~~~~~~~~~~~~~~~~~~~

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2018-05-17 17:30:09 +02:00
..
aliases.c s4:torture:basic: fix valgrind 'Syscall param writev(vector[...])' error. 2016-04-25 10:35:15 +02:00
attr.c s4:torture:basic: fix 'Syscall param writev(vector[...])' valgrind error 2016-04-25 10:35:15 +02:00
base.c s4-torture: fix truncation warnings 2017-11-24 01:13:15 +01:00
charset.c
cxd_known.h
delaywrite.c Fix spelling s/doens't/doesn't/ 2018-05-12 02:09:26 +02:00
delete.c s4: torture: Test all combinations of directory open with existing directory to ensure behavior is the same. 2018-03-29 23:13:41 +02:00
denytest.c s3,s4 torture/denytest: fix possible infinite loop 2016-03-04 21:23:45 +01:00
dir.c s4:torture:basic:dir: fix O3 error unused result of asprintf 2016-05-13 00:16:16 +02:00
disconnect.c s4-torture: Improve torture test boilerplate, use torture_assert() 2012-05-18 09:35:13 +02:00
locking.c Fix spelling s/processs/process/ 2018-05-12 02:09:27 +02:00
mangle_test.c s4:torture: Use strlcpy() in gen_name() 2018-05-17 17:30:09 +02:00
misc.c s4:torture: Add FALL_THROUGH statements in basic/misc.c 2018-03-01 04:37:43 +01:00
properties.c
rename.c
scanner.c Correct "existence" typos. 2017-02-22 08:26:22 +01:00
secleak.c
unlink.c
utable.c s4:torture:basic: fix O3 error unused result of write 2016-05-13 00:16:16 +02:00