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

http_client: fixed potential memory corruption (CID 514587) #9611

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/flb_http_client_http1.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ int flb_http1_request_commit(struct flb_http_request *request)
return -7;
}

request_buffer = sds_result;

if (request->body != NULL) {
sds_result = cfl_sds_cat(request_buffer,
request->body,
Expand Down
Loading