1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
No description
Find a file
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
lib Fix segfault in libwebsocket_write() 2011-04-15 13:17:26 +01:00
scripts refactor-into-dirs.patch 2010-11-01 09:12:17 +00:00
test-server beautify fraggle 2011-03-09 09:21:24 +00:00
tmp/win32port/zlib update win32 support for zlib 2011-03-10 18:19:10 +00:00
win32port update win32 support for zlib 2011-03-10 18:19:10 +00:00
aclocal.m4 fork-sever-process-and-introduce-broadcast-api.patch 2010-12-18 15:13:50 +00:00
config.guess remove symlinks-from-automake-missing 2010-11-10 11:57:07 +00:00
config.h.in configure add requirement for zlib.h 2011-03-06 13:37:10 +00:00
config.sub remove symlinks-from-automake-missing 2010-11-10 11:57:07 +00:00
configure configure add requirement for zlib.h 2011-03-06 13:37:10 +00:00
configure.ac configure add requirement for zlib.h 2011-03-06 13:37:10 +00:00
COPYING add-COPYING-lgpl-2.1.patch 2010-11-08 17:12:19 +00:00
depcomp remove symlinks-from-automake-missing 2010-11-10 11:57:07 +00:00
INSTALL add-INSTALL.patch 2010-11-12 13:11:50 +00:00
install-sh remove symlinks-from-automake-missing 2010-11-10 11:57:07 +00:00
libwebsockets-api-doc.html pass ext pointer in ext callback 2011-03-22 09:04:01 +00:00
libwebsockets.spec uplevel-rpm-spec-to-include-new-extpoll-sample.patch 2011-02-13 09:08:11 +00:00
ltmain.sh fork-sever-process-and-introduce-broadcast-api.patch 2010-12-18 15:13:50 +00:00
Makefile.am introduce-ssl-client-connections--flow-control.patch 2011-01-27 06:26:52 +00:00
Makefile.in introduce-ssl-client-connections--flow-control.patch 2011-01-27 06:26:52 +00:00
missing remove symlinks-from-automake-missing 2010-11-10 11:57:07 +00:00
README-test-server clean fraggle 2011-03-08 08:43:59 +00:00