mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:54:11 +03:00
rtsp: Convert assertion into debug log
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65934 - write excess bytes to the client where the standard excess bytes checks will report any wrongness and fail the transfer Fixes #12738 Closes #12739
This commit is contained in:
parent
c8cffcb8d4
commit
524253dc90
1 changed files with 3 additions and 1 deletions
|
|
@ -804,7 +804,9 @@ static CURLcode rtsp_rtp_write_resp(struct Curl_easy *data,
|
|||
buf += consumed;
|
||||
blen -= consumed;
|
||||
/* either we consumed all or are at the start of header parsing */
|
||||
DEBUGASSERT(blen == 0 || data->req.header);
|
||||
if(blen && !data->req.header)
|
||||
DEBUGF(infof(data, "RTSP: %zu bytes, possibly excess in response body",
|
||||
blen));
|
||||
}
|
||||
|
||||
/* we want to parse headers, do so */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue