Skip to content

setopt_cptr: make overflow check only done when needed - #15439

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/setopt-size-check
Closed

setopt_cptr: make overflow check only done when needed#15439
bagder wants to merge 1 commit into
masterfrom
bagder/setopt-size-check

Conversation

@bagder

@bagder bagder commented Oct 29, 2024

Copy link
Copy Markdown
Member

An overflow check for if the value of a curl_off_t is larger than a size_t can hold, is only necessary if the two types are actually differently sized, now checked by the preprocessor. To avoid "Unreachable Conditional".

An overflow check for if the value of a curl_off_t is larger than a
size_t can hold, is only necessary if the two types are actually
differently sized, now checked by the preprocessor. To avoid
"Unreachable Conditional".
@bagder bagder closed this in cbc39a8 Oct 29, 2024
@bagder
bagder deleted the bagder/setopt-size-check branch October 29, 2024 08:25
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
An overflow check for if the value of a curl_off_t is larger than a
size_t can hold, is only necessary if the two types are actually
differently sized, now checked by the preprocessor. To avoid
"Unreachable Conditional".

Closes curl#15439
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant