1
0
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:
Mészáros Mihály 2020-02-17 10:34:56 +01:00
parent 047102a44b
commit 51a7c2b9bf

View File

@ -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;