-
Notifications
You must be signed in to change notification settings - Fork 1.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
Use of possibly uninitialized variable body_chunk_len in lib/roles/h2/http2.c #3004
Comments
Thanks... we only try to use FWIW F39 gcc 13.2 did not blow any errors AFAIK. Of course, in terms of an error coming out of the compiler and killing the build, it doesn't make much odds, it still emits an error rightly or wrongly the same. But since it's wrong, we only need to help the compiler see it's wrong so just zeroing should be fine. I pushed a patch doing that (and moving the declaration scope inside the loop) on main + v4.3-stable. |
Use of uninitialized variable in lib/roles/h2/http2.c.
lws_filepos_t body_chunk_len
is declared in line 2819 and used later, but might not be initialized.Is it safe to simply initialize this with 0?
The text was updated successfully, but these errors were encountered: