Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setopt_cptr: make overflow check only done when needed #15439

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Oct 29, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant