-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
lib: fix null ptr derefs and uninitialized vars (h2/h3) #11739
Conversation
Lines 1816 to 1826 in c2212c0
If it's inlining then maybe it means stream may be null which can happen at other points. For example Lines 2493 to 2502 in c2212c0
From what I can see stream can be null if http2_data_setup hasn't been called which means nothing has been sent. A quick fix would be stream && for everywhere it's derefed in that function. A better fix would be to initialize the stream context earlier, but that may have side effects. |
@jay: Thanks for looking into this. Based on it, I could fix this in It might use a more complete fix to not just silence the warning, but tackle other potential cases. Also, the returned failure value might not be the one we want and/or could also use trace output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the proposed parameter addition might make things more clear and avoid unnecessary if
s for cases that never happen.
Pushed a commit to pass |
Fixing compiler warnings with gcc 13.2.0 in unity builds. Assisted-by: Jay Satiro Assisted-by: Stefan Eissing Closes curl#11739
Closes #11739
FIXME, could not figure how to fix/silence this one [NOW FIXED]:Warnings from gcc 13.2.0, unity build: