You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KasmVNC/common/rdr
Mark Mielke 80a637c793 Fix division by zero exception in SSecurityPlain.
If using SSecurityPlain and the user specifies an empty username
and password, it will invoke InStream::checkNoWait(0) which will
cause a division by zero when calculating the number of available
items.

Enhance InStream::check() to behave properly when asked for
zero items, or zero sized items.

Add comments to InStream::check(), InStream::checkNoWait(),
and InStream::readBytes() to document expected behaviour
when requested to check or read zero items, or an item with
zero size.
5 years ago
..
CMakeLists.txt Initial commit 5 years ago
Exception.cxx Include error code in getaddrinfo() exceptions 5 years ago
Exception.h Throw GAIException() for getaddrinfo errors 5 years ago
FdInStream.cxx Be defensive about overflows in stream objects 5 years ago
FdInStream.h Use size_t for lengths in stream objects 5 years ago
FdOutStream.cxx Be defensive about overflows in stream objects 5 years ago
FdOutStream.h Use size_t for lengths in stream objects 5 years ago
FileInStream.cxx Be defensive about overflows in stream objects 5 years ago
FileInStream.h Use size_t for lengths in stream objects 5 years ago
HexInStream.cxx Be defensive about overflows in stream objects 5 years ago
HexInStream.h Use size_t for lengths in stream objects 5 years ago
HexOutStream.cxx Be defensive about overflows in stream objects 5 years ago
HexOutStream.h Use size_t for lengths in stream objects 5 years ago
InStream.cxx Initial commit 5 years ago
InStream.h Fix division by zero exception in SSecurityPlain. 5 years ago
MemInStream.h Use size_t for lengths in stream objects 5 years ago
MemOutStream.h Be defensive about overflows in stream objects 5 years ago
OutStream.h Be defensive about overflows in stream objects 5 years ago
RandomStream.cxx Be defensive about overflows in stream objects 5 years ago
RandomStream.h Use size_t for lengths in stream objects 5 years ago
TLSException.cxx Initial commit 5 years ago
TLSException.h Initial commit 5 years ago
TLSInStream.cxx Handle pending data in TLS buffers 5 years ago
TLSInStream.h Use size_t for lengths in stream objects 5 years ago
TLSOutStream.cxx Be defensive about overflows in stream objects 5 years ago
TLSOutStream.h Use size_t for lengths in stream objects 5 years ago
ZlibInStream.cxx Fix error check for zlib calls 5 years ago
ZlibInStream.h Use size_t for lengths in stream objects 5 years ago
ZlibOutStream.cxx Fix error check for zlib calls 5 years ago
ZlibOutStream.h Use size_t for lengths in stream objects 5 years ago
types.h Initial commit 5 years ago