This is a security audit change of the main source.
authorJeremy Allison <jra@samba.org>
Tue, 12 May 1998 00:55:32 +0000 (00:55 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 12 May 1998 00:55:32 +0000 (00:55 +0000)
commitf888868f46a5418bac9ab528497136c152895305
treecf72c864807b19e098a856aaec8daf334189ff84
parent9141acecdcebd9276107a500435e3d4545020056
This is a security audit change of the main source.
It removed all ocurrences of the following functions :

sprintf
strcpy
strcat

The replacements are slprintf, safe_strcpy and safe_strcat.

It should not be possible to use code in Samba that uses
sprintf, strcpy or strcat, only the safe_equivalents.

Once Andrew has fixed the slprintf implementation then
this code will be moved back to the 1.9.18 code stream.

Jeremy.
(This used to be commit 2d774454005f0b54e5684cf618da7060594dfcbb)
68 files changed:
source3/client/client.c
source3/client/clientutil.c
source3/client/clitar.c
source3/client/ntclient.c
source3/client/smbmount.c
source3/client/smbumount.c
source3/include/includes.h
source3/include/proto.h
source3/include/smb.h
source3/lib/charset.c
source3/lib/genrand.c
source3/lib/kanji.c
source3/lib/pidfile.c
source3/lib/slprintf.c
source3/lib/time.c
source3/lib/util.c
source3/libsmb/clientgen.c
source3/libsmb/credentials.c
source3/libsmb/namequery.c
source3/libsmb/nmblib.c
source3/libsmb/nterr.c
source3/libsmb/smberr.c
source3/locking/locking_shm.c
source3/locking/locking_slow.c
source3/locking/shmem.c
source3/nmbd/nmbd.c
source3/nmbd/nmbd_become_lmb.c
source3/nmbd/nmbd_browsesync.c
source3/nmbd/nmbd_incomingrequests.c
source3/nmbd/nmbd_namelistdb.c
source3/nmbd/nmbd_packets.c
source3/nmbd/nmbd_processlogon.c
source3/nmbd/nmbd_serverlistdb.c
source3/nmbd/nmbd_winsserver.c
source3/param/loadparm.c
source3/passdb/ldap.c
source3/passdb/smbpass.c
source3/printing/pcap.c
source3/printing/printing.c
source3/rpc_client/cli_pipe.c
source3/rpc_client/ntclienttrust.c
source3/rpc_parse/parse_lsa.c
source3/rpc_parse/parse_misc.c
source3/rpc_parse/parse_samr.c
source3/rpc_server/srv_netlog.c
source3/rpc_server/srv_samr.c
source3/rpc_server/srv_util.c
source3/smbd/chgpasswd.c
source3/smbd/connection.c
source3/smbd/dir.c
source3/smbd/ipc.c
source3/smbd/mangle.c
source3/smbd/password.c
source3/smbd/quotas.c
source3/smbd/reply.c
source3/smbd/server.c
source3/smbd/trans2.c
source3/smbd/vt_mode.c
source3/utils/make_printerdef.c
source3/utils/make_smbcodepage.c
source3/utils/nmblookup.c
source3/utils/smbpasswd.c
source3/utils/status.c
source3/utils/testparm.c
source3/utils/torture.c
source3/web/cgi.c
source3/web/startstop.c
source3/web/statuspage.c