Commit f7e73fc
committed
Fix format-string mismatch in load_user_profile debug log
The debug3 on LoadUserProfileW failure had format "%s %S %d" (three
specifiers) but only two arguments. %S consumed GetLastError()'s DWORD
as a wide-string pointer and wcsnlen dereferenced it, crashing
sshd-session post-auth.
Only visible where LoadUserProfileW actually fails (e.g. WinPE, which
has no user-profile service), so regular Windows was unaffected.1 parent c55ef23 commit f7e73fc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
0 commit comments