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 3282836baf Make ZlibInStream more robust against failures
Move the checks around to avoid missing cases where we might access
memory that is no longer valid. Also avoid touching the underlying
stream implicitly (e.g. via the destructor) as it might also no
longer be valid.

A malicious server could theoretically use this for remote code
execution in the client.

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 Initial commit 5 years ago
FdInStream.h Initial commit 5 years ago
FdOutStream.cxx Initial commit 5 years ago
FdOutStream.h Initial commit 5 years ago
FileInStream.cxx Initial commit 5 years ago
FileInStream.h Initial commit 5 years ago
FixedMemOutStream.h Initial commit 5 years ago
HexInStream.cxx Initial commit 5 years ago
HexInStream.h Initial commit 5 years ago
HexOutStream.cxx Initial commit 5 years ago
HexOutStream.h Initial commit 5 years ago
InStream.cxx Initial commit 5 years ago
InStream.h Initial commit 5 years ago
MemInStream.h Initial commit 5 years ago
MemOutStream.h Initial commit 5 years ago
OutStream.h Initial commit 5 years ago
RandomStream.cxx Initial commit 5 years ago
RandomStream.h Initial commit 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 Initial commit 5 years ago
TLSInStream.h Initial commit 5 years ago
TLSOutStream.cxx Initial commit 5 years ago
TLSOutStream.h Initial commit 5 years ago
ZlibInStream.cxx Make ZlibInStream more robust against failures 5 years ago
ZlibInStream.h Make ZlibInStream more robust against failures 5 years ago
ZlibOutStream.cxx Initial commit 5 years ago
ZlibOutStream.h Initial commit 5 years ago
types.h Initial commit 5 years ago