mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03:00
rustls: typecast variable for safer trace output
This is a variadic function call with a mismatched argument type; on platforms where uintptr_t and size_t differ, this invokes undefined behavior. Reported in Joshua's sarif data Closes #18628
This commit is contained in:
parent
0209e087c6
commit
2fe95cb0e3
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ read_cb(void *userdata, uint8_t *buf, uintptr_t len, uintptr_t *out_n)
|
|||
connssl->peer_closed = TRUE;
|
||||
*out_n = (uintptr_t)nread;
|
||||
CURL_TRC_CF(io_ctx->data, io_ctx->cf, "cf->next recv(len=%zu) -> %d, %zu",
|
||||
len, result, nread);
|
||||
(size_t)len, result, nread);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue