summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-26 17:30:45 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-28 13:10:28 +0200
commitf28fda763869f75646f904d90f13ea40caf8c925 (patch)
tree29115977f2fc90280d1c71eeb0548b474a0316b4 /source3/torture
parent9fe8c3db910a8545c1719bcfc596a150efc4b663 (diff)
downloadsamba-f28fda763869f75646f904d90f13ea40caf8c925.tar.gz
samba-f28fda763869f75646f904d90f13ea40caf8c925.tar.bz2
samba-f28fda763869f75646f904d90f13ea40caf8c925.zip
s3-torture Remove t_stringoverflow as fstrcpy now uses strlcpy
Because we no longer use safe_strcpy() internally, we no longer have a mode where we write to the end of the buffer in developer mode, and so there isn't anything for this test to test. Andrew Bartlett
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/t_stringoverflow.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/torture/t_stringoverflow.c b/source3/torture/t_stringoverflow.c
deleted file mode 100644
index 17765e6a2c..0000000000
--- a/source3/torture/t_stringoverflow.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "includes.h"
-
- int main(void)
-{
- char dest[100];
- char *ptr = dest;
-
- printf("running on valgrind? %d\n", RUNNING_ON_VALGRIND);
-
- /* Try copying a string into an fstring buffer. The string
- * will actually fit, but this is still wrong because you
- * can't pstrcpy into an fstring. This should trap in a
- * developer build. */
-
-#if 0
- /* As of CVS 20030318, this will be trapped at compile time! */
- pstrcpy(dest, "hello");
-#endif /* 0 */
-
- fstrcpy(ptr, "hello!");
-
- return 0;
-}