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

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


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

net_Gets: increase size limit (fixes #9555)

(cherry picked from commit e74131d85ecfb17a2c3170eee899ff0ac9457214)

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

 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