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:
Stefan Eissing 2024-01-19 10:15:03 +01:00 committed by Daniel Stenberg
parent c8cffcb8d4
commit 524253dc90
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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 */