s3-lib Remove the clobber_region() code.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 Mar 2011 04:30:43 +0000 (15:30 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 23 Mar 2011 01:49:39 +0000 (12:49 +1100)
commit1923b78209aaa2aa926dedd19e6c97fb449c48c8
tree534acb7efe0910616511dd645b86a4b7cd5422a7
parentcd4306b01e4097b76777a9a85cc226e8b0e8f613
s3-lib Remove the clobber_region() code.

This code wrote to the full buffer in fstrcpy(), pstrcpy() and other
fixed-length string manipulation functions.

The hope of this code was to find out at run time if we were mixing up
pstring and fstring etc, and to record where this came from.  It has a
runtime performance impact (particularly if compiled with
--enable-developer).

It is being removed because of the complexity it adds, and the
distinct lack of bugs that this complexity has been credited in
finding.

The macro-based compile-time checking of string sizes remains.

Andrew Bartlett
12 files changed:
source3/Makefile.in
source3/include/proto.h
source3/include/safe_string.h
source3/lib/charcnv.c
source3/lib/clobber.c [deleted file]
source3/lib/util.c
source3/lib/util_sock.c
source3/lib/util_str.c
source3/libsmb/clientgen.c
source3/libsmb/clistr.c
source3/smbd/srvstr.c
source3/wscript_build