Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dc98ac1a
Commit
dc98ac1a
authored
Jan 24, 2007
by
Kai Blin
Committed by
Alexandre Julliard
Jan 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fix off-by-one error when copying the password to the helper.
This fixes NTLM authentication with Outlook2003.
parent
d05f5f33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ntlm.c
dlls/secur32/ntlm.c
+4
-3
No files found.
dlls/secur32/ntlm.c
View file @
dc98ac1a
...
@@ -222,8 +222,9 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
...
@@ -222,8 +222,9 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
{
{
helper
->
pwlen
=
WideCharToMultiByte
(
CP_UNIXCP
,
helper
->
pwlen
=
WideCharToMultiByte
(
CP_UNIXCP
,
WC_NO_BEST_FIT_CHARS
,
auth_data
->
Password
,
WC_NO_BEST_FIT_CHARS
,
auth_data
->
Password
,
auth_data
->
PasswordLength
+
1
,
NULL
,
0
,
NULL
,
NULL
);
auth_data
->
PasswordLength
+
1
,
NULL
,
0
,
NULL
,
NULL
)
+
1
;
helper
->
password
=
HeapAlloc
(
GetProcessHeap
(),
0
,
helper
->
password
=
HeapAlloc
(
GetProcessHeap
(),
0
,
helper
->
pwlen
);
helper
->
pwlen
);
...
@@ -232,7 +233,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
...
@@ -232,7 +233,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
helper
->
password
,
helper
->
pwlen
,
NULL
,
NULL
);
helper
->
password
,
helper
->
pwlen
,
NULL
,
NULL
);
}
}
}
}
phCredential
->
dwUpper
=
fCredentialUse
;
phCredential
->
dwUpper
=
fCredentialUse
;
phCredential
->
dwLower
=
(
ULONG_PTR
)
helper
;
phCredential
->
dwLower
=
(
ULONG_PTR
)
helper
;
TRACE
(
"ACH phCredential->dwUpper: 0x%08lx, dwLower: 0x%08lx
\n
"
,
TRACE
(
"ACH phCredential->dwUpper: 0x%08lx, dwLower: 0x%08lx
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment