mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
changed to use slprintf() instead of sprintf() just about
everywhere. I've implemented slprintf() as a bounds checked sprintf() using mprotect() and a non-writeable page. This should prevent any sprintf based security holes.
This commit is contained in:
@@ -270,7 +270,7 @@ BOOL cli_net_srv_pwset(struct cli_state *cli, uint8 hashed_mach_pwd[16])
|
||||
|
||||
/* store the parameters */
|
||||
make_q_srv_pwset(&q_s, cli->srv_name_slash, cli->mach_acct, sec_chan_type,
|
||||
global_myname, &new_clnt_cred, hashed_mach_pwd);
|
||||
global_myname, &new_clnt_cred, (char *)hashed_mach_pwd);
|
||||
|
||||
/* turn parameters into data stream */
|
||||
net_io_q_srv_pwset("", &q_s, &buf, 0);
|
||||
|
||||
Reference in New Issue
Block a user