[vlc-commits] net_Gets: increase size limit (fixes #9555)

Rémi Denis-Courmont git at videolan.org
Tue Oct 1 16:19:32 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct  1 17:18:58 2013 +0300| [e74131d85ecfb17a2c3170eee899ff0ac9457214] | committer: Rémi Denis-Courmont

net_Gets: increase size limit (fixes #9555)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e74131d85ecfb17a2c3170eee899ff0ac9457214
---

 src/network/io.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network/io.c b/src/network/io.c
index a8ea870..dc5ef12 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -461,7 +461,7 @@ char *net_Gets(vlc_object_t *obj, int fd, const v_socket_t *vs)
     {
         if (buflen == bufsize)
         {
-            if (unlikely(bufsize >= (1 << 10)))
+            if (unlikely(bufsize >= (1 << 16)))
                 goto error; /* put sane buffer size limit */
 
             char *newbuf = realloc(buf, bufsize + 1024);



More information about the vlc-commits mailing list