-
Notifications
You must be signed in to change notification settings - Fork 1.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
in_http: reassign mk_http_request values on realloc. #8643
Conversation
reassign pointers in mk_http_request when the request buffer is reallocated. Signed-off-by: Phillip Whelan <[email protected]>
Preempted and replaced by #8649. |
Reopening this PR to fix the legacy support for |
@pwhelan is it safe to assume this is not longer needed ? |
it is still required since @leonardo-albertovich's fix only handled the new http2 based code and this fixes the legacy code (used when |
I just tested with valgrind and it seems to still be good. |
thank you ! |
Summary
Reassign pointers in mk_http_request when the request buffer is reallocated. If this is not done a crash occurs when in_http attempts to check header values or the uri.
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.