From: Stefan Eissing Date: Fri, 19 Jan 2024 09:15:03 +0000 (+0100) Subject: rtsp: Convert assertion into debug log X-Git-Tag: curl-8_6_0~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=524253dc9078e69300c5390eda496603067f325f;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/rtsp.c b/lib/rtsp.c index dba8ae7a67..26f4735344 100644 --- a/lib/rtsp.c +++ b/lib/rtsp.c @@ -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 */