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.
2020-09-21 13:46:38 +03:00
..
CMakeLists.txt Initial commit 2020-09-20 12:16:44 +00:00
Exception.cxx Include error code in getaddrinfo() exceptions 2020-09-21 13:26:51 +03:00
Exception.h Throw GAIException() for getaddrinfo errors 2020-09-21 13:26:15 +03:00
FdInStream.cxx Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
FdInStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
FdOutStream.cxx Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
FdOutStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
FileInStream.cxx Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
FileInStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
HexInStream.cxx Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
HexInStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
HexOutStream.cxx Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
HexOutStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
InStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
InStream.h Fix division by zero exception in SSecurityPlain. 2020-09-21 13:46:38 +03:00
MemInStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
MemOutStream.h Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
OutStream.h Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
RandomStream.cxx Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
RandomStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
TLSException.cxx Initial commit 2020-09-20 12:16:44 +00:00
TLSException.h Initial commit 2020-09-20 12:16:44 +00:00
TLSInStream.cxx Handle pending data in TLS buffers 2020-09-21 13:00:41 +03:00
TLSInStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
TLSOutStream.cxx Be defensive about overflows in stream objects 2020-09-21 12:56:23 +03:00
TLSOutStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
types.h Initial commit 2020-09-20 12:16:44 +00:00
ZlibInStream.cxx Fix error check for zlib calls 2020-09-21 13:18:11 +03:00
ZlibInStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00
ZlibOutStream.cxx Fix error check for zlib calls 2020-09-21 13:18:11 +03:00
ZlibOutStream.h Use size_t for lengths in stream objects 2020-09-21 12:55:59 +03:00