Revert "rtsp: use dynbuf instead of custom reallocs"

This reverts commit 1b9ea3239d because of OSS-fuzz reports.
I'll do another take after the pending release.

Closes #10785
This commit is contained in:
Daniel Stenberg 2023-03-17 15:26:00 +01:00
parent ba1fba9cad
commit f5e0f52dd3
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 35 additions and 16 deletions

View file

@ -29,8 +29,6 @@
#ifndef CURL_DISABLE_RTSP
#include "dynbuf.h"
extern const struct Curl_handler Curl_handler_rtsp;
CURLcode Curl_rtsp_parseheader(struct Curl_easy *data, char *header);
@ -47,7 +45,8 @@ CURLcode Curl_rtsp_parseheader(struct Curl_easy *data, char *header);
* Currently, only used for tracking incomplete RTP data reads
*/
struct rtsp_conn {
struct dynbuf buf;
char *rtp_buf;
ssize_t rtp_bufsize;
int rtp_channel;
};