-
Notifications
You must be signed in to change notification settings - Fork 7
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
double-free in http_read_cb() #174
Comments
good catch, in practice double-free would happen if the server is not HTTP -- sends something that fails to parse by HTTP parser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Clang static analyzer found a code path where a heap block is freed twice, in
http_read_cb()
in http.cfree(buf->base);
free(buf->base);
Unless I’m missing something, flow of control will go from line 96 to line 132 without returning or changing
buf
orbuf->base
in the interim.The text was updated successfully, but these errors were encountered: