mirror of
https://github.com/curl/curl.git
synced 2026-08-01 10:48:08 +03:00
windows: determine RtlVerifyVersionInfo address on global init
Instead of the first internal call to `curlx_verify_windows_version()`.
To avoid the chance of a race, potentially resulting in initializing
this address twice. AFAICT it could not cause an issue before this
patch.
Reported by Codex Security
Follow-up to b17ef873ae #18009
Closes #20853
This commit is contained in:
parent
ccba492024
commit
6a6826469d
4 changed files with 31 additions and 22 deletions
|
|
@ -901,6 +901,7 @@ curl_socket_t win32_stdin_read_thread(void)
|
|||
|
||||
CURLcode win32_init(void)
|
||||
{
|
||||
curlx_verify_windows_init();
|
||||
curlx_now_init();
|
||||
#ifndef CURL_WINDOWS_UWP
|
||||
init_terminal();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue