Skip to content

mbedtls: fix potential use of uninitialized nread - #19393

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/mbedtls-nread
Closed

mbedtls: fix potential use of uninitialized nread#19393
bagder wants to merge 2 commits into
masterfrom
bagder/mbedtls-nread

Conversation

@bagder

@bagder bagder commented Nov 7, 2025

Copy link
Copy Markdown
Member

When Curl_conn_cf_recv() returns error, the variable might not be assigned and the tracing output may (harmlessly) use it uninitialized.

Also add a comment about the typecast from size_t to int being fine.

Pointed out by ZeroPath

When Curl_conn_cf_recv() returns error, the variable might not be
assigned and the tracing output may (harmlessly) use it uninitialized.

Also add a comment about the typecast from size_t to int being fine.

Pointed out by ZeroPath
@bagder bagder added the TLS label Nov 7, 2025
@bagder bagder closed this in a6eaa67 Nov 7, 2025
@bagder
bagder deleted the bagder/mbedtls-nread branch November 7, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant