-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
openssl: use of variables defined in different scopes #16246
Comments
Curious that this doesn't show up in CI. |
Some of the 'goto fail' situations could happen without having initialized the local variables referenced in the error code flow. Reported-by: Marcel Raad Fixes #16246
Indeed curious that none of the CI jobs spotted this. Can you check if #16251 does the job? |
This should have caught curl#16246.
Works for me, thanks! I have just created #16252 to see if that shows the same warning for GCC, so we might want to wait for its builds to run before merging your PR. |
This should have caught curl#16246.
It does catch the issue :-) https://github.com/curl/curl/actions/runs/13209540241/job/36880307494?pr=16252
|
Lovely! |
Our end of the warnings seems to be working correctly (after double checking One suspect is OpenSSL configuration. It's kind of hard to tell what options This curl codepath needs the OpenSSL UI feature. So I added an https://github.com/curl/curl/actions/runs/13210670321/job/36883398358 It looks like vcpkg/AppVeyor OpenSSL binaries do not have UI enabled, which This also explains why I bumped into these warnings with iOS and the Carthage edit: |
This should have caught curl#16246. Closes curl#16252
This should have caught curl#16246. Closes curl#16252
This should have caught curl#16246. Closes curl#16252
I did this
With warnings-as-errors enabled, Visual Studio 2022 17.4.21 issues the following errors for the 8.12.0 release:
This is a regression from 999cc81#diff-03eaf320162ec20f67fab4e16f494e29735dadfa12425530869d42eea86bd2cc, which added
goto
s to thefail
label defined in a different scope and using local variables from that scope.I expected the following
No warnings about uninitialized variables.
curl/libcurl version
8.12.0
operating system
Windows
The text was updated successfully, but these errors were encountered: