mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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
This commit is contained in:
parent
9fe8c3db91
commit
f28fda7638
@ -3184,10 +3184,6 @@ bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTD
|
||||
@$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
|
||||
$(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
|
||||
|
||||
bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
|
||||
$(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
|
||||
-L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
|
||||
|
||||
bin/timelimit@EXEEXT@: script/tests/timelimit.o
|
||||
@echo Linking $@
|
||||
@$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user