You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main for loop in parse!() never terminates when the last parser input is fragmented so that the last character in the input bytes is the : at the end of a header.
i.e. If the parser will lock up if the request data is fragmented so that the first call to readavailable(socket) returns "HTTP/1.1 200 OK\r\nDate:".
PR #124 adds a test that parses 1 byte at a time to demonstrate the problem and adds a loop invariant @assert to the for loop to stop in looping forever.
julia> HTTP.parse(HTTP.Response, "HTTP/1.1 200 OK\r\nDate:")
ERROR: AssertionError: p > old_p
The text was updated successfully, but these errors were encountered:
…uliaWeb#126.
Replace local `KEY` in `parse!()` with `parser.previous_field`.
Add onurlbytes(). Accumulates URL in `parser.valuebuffer`.
Use `Ref{String}` to return `extra`/`upgrade` so that caller can
tell
the difference between upgrade with empty string and no upgrade.
Add `s_req_fragment_start` to list of states where the url_mark
should
be reset to 1.
The main
for
loop inparse!()
never terminates when the last parser input is fragmented so that the last character in the inputbytes
is the:
at the end of a header.i.e. If the parser will lock up if the request data is fragmented so that the first call to
readavailable(socket)
returns"HTTP/1.1 200 OK\r\nDate:"
.PR #124 adds a test that parses 1 byte at a time to demonstrate the problem and adds a loop invariant
@assert
to thefor
loop to stop in looping forever.The text was updated successfully, but these errors were encountered: