Commit e74131d8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

net_Gets: increase size limit (fixes #9555)

parent bb515401
...@@ -461,7 +461,7 @@ char *net_Gets(vlc_object_t *obj, int fd, const v_socket_t *vs) ...@@ -461,7 +461,7 @@ char *net_Gets(vlc_object_t *obj, int fd, const v_socket_t *vs)
{ {
if (buflen == bufsize) if (buflen == bufsize)
{ {
if (unlikely(bufsize >= (1 << 10))) if (unlikely(bufsize >= (1 << 16)))
goto error; /* put sane buffer size limit */ goto error; /* put sane buffer size limit */
char *newbuf = realloc(buf, bufsize + 1024); char *newbuf = realloc(buf, bufsize + 1024);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment