mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r21151: applying patches for CVE-2007-045[34]
This commit is contained in:
parent
39809d7391
commit
1d46b2ae34
@ -901,7 +901,7 @@ static BOOL afs_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
|
||||
ZERO_STRUCT(dir_acl);
|
||||
ZERO_STRUCT(file_acl);
|
||||
|
||||
pstr_sprintf(name, fsp->fsp_name);
|
||||
pstrcpy(name, fsp->fsp_name);
|
||||
|
||||
if (!fsp->is_directory) {
|
||||
/* We need to get the name of the directory containing the
|
||||
|
@ -493,7 +493,8 @@ _nss_winbind_ipnodes_getbyname(nss_backend_t* be, void *args)
|
||||
af = AF_INET6;
|
||||
#endif
|
||||
|
||||
strncpy(request.data.winsreq, argp->key.name, strlen(argp->key.name)) ;
|
||||
strncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1);
|
||||
request.data.winsreq[sizeof(request.data.winsreq) - 1] = '\0';
|
||||
|
||||
if( (ret = winbindd_request_response(WINBINDD_WINS_BYNAME, &request, &response))
|
||||
== NSS_STATUS_SUCCESS ) {
|
||||
@ -515,7 +516,8 @@ _nss_winbind_hosts_getbyname(nss_backend_t* be, void *args)
|
||||
ZERO_STRUCT(response);
|
||||
ZERO_STRUCT(request);
|
||||
|
||||
strncpy(request.data.winsreq, argp->key.name, strlen(argp->key.name));
|
||||
strncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1);
|
||||
request.data.winsreq[sizeof(request.data.winsreq) - 1] = '\0';
|
||||
|
||||
if( (ret = winbindd_request_response(WINBINDD_WINS_BYNAME, &request, &response))
|
||||
== NSS_STATUS_SUCCESS ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user