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
Pierre Ossman ae6cbd19e9 Be defensive about overflows in stream objects
We use a lot of lengths given to us over the network, so be more
paranoid about them causing an overflow as otherwise an attacker
might trick us in to overwriting other memory.

This primarily affects the client which often gets lengths from the
server, but there are also some scenarios where the server might
theoretically be vulnerable.

Issue found by Pavel Cheremushkin from Kaspersky Lab.
5 years ago
..
CMakeLists.txt Initial commit 5 years ago
Exception.cxx Initial commit 5 years ago
Exception.h Initial commit 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 Be defensive about overflows in stream objects 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
SubstitutingInStream.h Initial commit 5 years ago
TLSException.cxx Initial commit 5 years ago
TLSException.h Initial commit 5 years ago
TLSInStream.cxx Be defensive about overflows in stream objects 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 Be defensive about overflows in stream objects 5 years ago
ZlibInStream.h Use size_t for lengths in stream objects 5 years ago
ZlibOutStream.cxx Be defensive about overflows in stream objects 5 years ago
ZlibOutStream.h Use size_t for lengths in stream objects 5 years ago
types.h Initial commit 5 years ago