mirror of
https://github.com/coturn/coturn.git
synced 2025-11-01 07:21:04 +01:00
Fix: CVE-2020-6061/TALOS-2020-0984
This commit is contained in:
parent
047102a44b
commit
51a7c2b9bf
@ -103,7 +103,7 @@ const char* get_http_date_header()
|
||||
|
||||
static struct headers_list * post_parse(char *data, size_t data_len)
|
||||
{
|
||||
while((*data=='\r')||(*data=='\n')) ++data;
|
||||
while((*data=='\r')||(*data=='\n')) { ++data; --data_len; }
|
||||
char *post_data = (char*)calloc(data_len + 1, sizeof(char));
|
||||
memcpy(post_data, data, data_len);
|
||||
char *fmarker = NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user