]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 476780 - Extend strlcat and strlcpy wrappers to GNU libc (part 2)
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 12 Nov 2023 21:11:52 +0000 (22:11 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 12 Nov 2023 21:11:52 +0000 (22:11 +0100)
Linux regtest

.gitignore
memcheck/tests/linux/Makefile.am
memcheck/tests/linux/strlcat_strlcpy.c [new symlink]
memcheck/tests/linux/strlcat_strlcpy.stderr.exp [new symlink]
memcheck/tests/linux/strlcat_strlcpy.vgtest [new file with mode: 0644]

index b48622c5b919e98ee2754b779e3aeb26dc991d76..6dca0059a47714a824d3f5869f960942876ccf79 100644 (file)
 /memcheck/tests/linux/syslog-syscall
 /memcheck/tests/linux/timerfd-syscall
 /memcheck/tests/linux/proc-auxv
+/memcheck/tests/linux/strlcat_strlcpy
 /memcheck/tests/linux/sys-openat
 /memcheck/tests/linux/sys-execveat
 /memcheck/tests/linux/check_execveat
index 53c266e48fc8c5e2e87fe9fada33050b107c7d25..fd99820aa2a3969e6f5f0ecdce5e6df2d90bd101 100644 (file)
@@ -34,6 +34,7 @@ EXTRA_DIST = \
        with-space.stderr.exp with-space.stdout.exp with-space.vgtest \
        proc-auxv.vgtest proc-auxv.stderr.exp getregset.vgtest \
        getregset.stderr.exp getregset.stdout.exp \
+       strlcat_strlpcy.vgtest strlcat_strlpcy.stderr.exp \
        sys-preadv_pwritev.vgtest sys-preadv_pwritev.stderr.exp \
        sys-preadv2_pwritev2.vgtest sys-preadv2_pwritev2.stderr.exp \
        sys-execveat.vgtest sys-execveat.stderr.exp sys-execveat.stdout.exp \
@@ -89,6 +90,10 @@ if HAVE_SETCONTEXT
         check_PROGRAMS += stack_changes
 endif
 
+if HAVE_STRLCAT
+        check_PROGRAMS += strlcat_strlcpy
+endif
+
 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
 
diff --git a/memcheck/tests/linux/strlcat_strlcpy.c b/memcheck/tests/linux/strlcat_strlcpy.c
new file mode 120000 (symlink)
index 0000000..890912a
--- /dev/null
@@ -0,0 +1 @@
+../freebsd/strlcat_strlcpy.c
\ No newline at end of file
diff --git a/memcheck/tests/linux/strlcat_strlcpy.stderr.exp b/memcheck/tests/linux/strlcat_strlcpy.stderr.exp
new file mode 120000 (symlink)
index 0000000..1a3a511
--- /dev/null
@@ -0,0 +1 @@
+../freebsd/strlcat_strlcpy.stderr.exp
\ No newline at end of file
diff --git a/memcheck/tests/linux/strlcat_strlcpy.vgtest b/memcheck/tests/linux/strlcat_strlcpy.vgtest
new file mode 100644 (file)
index 0000000..2719b06
--- /dev/null
@@ -0,0 +1,4 @@
+prereq: test -e ./strlcat_strlcpy
+prog: strlcat_strlcpy
+vgopts: -q
+