diff options
author | Ivo De Decker <ivo.dedecker@ugent.be> | 2013-05-10 13:33:02 +0200 |
---|---|---|
committer | Ivo De Decker <ivo.dedecker@ugent.be> | 2013-05-10 13:33:02 +0200 |
commit | 31202ad025bcdeb2585d18dc3f4641b5cf9c0ec4 (patch) | |
tree | 32c20d66684ac97b86e55495146e9a676bfae85a /source3/torture/t_stringoverflow.c | |
parent | 2865eba17fddda6c49f1209ca92d539111e7ff93 (diff) | |
download | samba-31202ad025bcdeb2585d18dc3f4641b5cf9c0ec4.tar.gz |
Imported Upstream version 4.0.0+dfsg1upstream/4.0.0+dfsg1
Diffstat (limited to 'source3/torture/t_stringoverflow.c')
-rw-r--r-- | source3/torture/t_stringoverflow.c | 23 |
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; -} |