-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
Hi,
It seems that there exists a potential integer overflow. Please find the following description:
-
n can be an arbitrary large number
Line 1042 in eff7761
n = recv(h->socket, buf, 2048, 0); -
h->req_buflen is added to n
Line 1060 in eff7761
h->req_buflen += n; -
Process_upnphttp(...) is called again
Line 1180 in eff7761
Process_upnphttp(e); -
Call to realloc with the large integer can cause a memory allocation with an overflowed size
Line 1088 in eff7761
h->req_buf = (char *)realloc(h->req_buf, n + h->req_buflen);
Metadata
Metadata
Assignees
Labels
No labels