libwebsockets/lib
Pavel Borzenkov 4b65a562a5 Fix segfault in libwebsocket_write()
Since 'shift' has unsigned integer type,
the following code may lead to infinite cycle
and segfault:

    while (shift >= 0) {
    	if (shift)
    		buf[0 - pre + n] =
    			((len >> shift) & 127) | 0x80;
    	else
    		buf[0 - pre + n] =
    			((len >> shift) & 127);
    	n++;
    	shift -= 7;
    }

Change type to signed integer.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@auriga.com>
2011-04-15 13:17:26 +01:00
..
base64-decode.c introduce-client-support.patch 2011-01-22 12:51:57 +00:00
client-handshake.c recv() may not return all data 2011-04-15 13:16:58 +01:00
extension-deflate-stream.c select raw zlib compression 2011-03-22 09:06:52 +00:00
extension-deflate-stream.h pass ext pointer in ext callback 2011-03-22 09:04:01 +00:00
extension.c introduce deflate compression extension 2011-03-06 13:32:53 +00:00
handshake.c pass ext pointer in ext callback 2011-03-22 09:04:01 +00:00
libwebsockets.c recv() may not return all data 2011-04-15 13:16:58 +01:00
libwebsockets.h pass ext pointer in ext callback 2011-03-22 09:04:01 +00:00
Makefile.am add explicit libz inclusion 2011-03-07 17:52:00 +00:00
Makefile.in add separate server writeable and change naming to match rest of callbacks 2011-03-07 20:47:39 +00:00
md5.c introduce-private-md5-sha1.patch 2011-01-23 17:47:08 +00:00
parsers.c Fix segfault in libwebsocket_write() 2011-04-15 13:17:26 +01:00
private-libwebsockets.h pass ext pointer in ext callback 2011-03-22 09:04:01 +00:00
sha-1.c introduce win32 build capability 2011-03-02 22:03:47 +00:00