]> granicus.if.org Git - php/commitdiff
- restore correct window_size
authorPierre Joye <pajoye@php.net>
Sun, 20 Nov 2011 10:10:43 +0000 (10:10 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 20 Nov 2011 10:10:43 +0000 (10:10 +0000)
ext/phar/phar.c

index ef7936b29b0deff28cff40adb15f2a78ba1355d4..5fd65871e9a6cfffc0b133373416ae10d4fcf70f 100644 (file)
@@ -1570,7 +1570,7 @@ static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *a
        const char gz_magic[] = "\x1f\x8b\x08";
        const char bz_magic[] = "BZh";
        char *pos, test = '\0';
-       const int window_size = 1024 + sizeof(token);
+       const int window_size = 1024;
        char buffer[1024 + sizeof(token)]; /* a 1024 byte window + the size of the halt_compiler token (moving window) */
        const long readsize = sizeof(buffer) - sizeof(token);
        const long tokenlen = sizeof(token) - 1;