Repository navigation
[#710] Fix split CRLF handling in http_read_chunked_body - #712
Open
Mohamed-Alkafory wants to merge 1 commit into
Open
Mohamed-Alkafory wants to merge 1 commit into
Mohamed-Alkafory wants to merge 1 commit into
Conversation
Collaborator
Mohamed-Alkafory
force-pushed
the
fix/chunked-crlf
branch
from
December 2, 2026 13:21
7825fa9 to
e7f1c43
Compare
Pranav-error
reviewed
Dec 2, 2026
Pranav-error
left a comment
Collaborator
There was a problem hiding this comment.
Checked on macOS, Debug build with ASan. test_http_chunked_split_crlf fails on 801d41c (10/10) and passes on e7f1c43 (20/20). A local harness that splits the body at every offset (2-piece, 3-piece, one byte per send) over 4 bodies (single, multi-chunk, chunk extension, trailer): 27 failures on main, 0 with this PR. Format is clean.
One gap: no test reaches the EOF branch in http_read_chunked_trailing(). If I change != 1 to < 0, or drop the goto error after the last-chunk read, the PR test still passes. Can you add an MCTF_TEST_NEGATIVE case where the server closes right after 5\r\nHello\r\n0\r\n and the test expects PGEXPORTER_HTTP_STATUS_ERROR?
Not run: Linux, TLS path.
Mohamed-Alkafory
force-pushed
the
fix/chunked-crlf
branch
from
December 2, 2026 15:10
e7f1c43 to
4828df9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #710