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
2020-09-21 12:40:12 +03:00
..
CMakeLists.txt Initial commit 2020-09-20 12:16:44 +00:00
Exception.cxx Initial commit 2020-09-20 12:16:44 +00:00
Exception.h Initial commit 2020-09-20 12:16:44 +00:00
FdInStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
FdInStream.h Initial commit 2020-09-20 12:16:44 +00:00
FdOutStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
FdOutStream.h Initial commit 2020-09-20 12:16:44 +00:00
FileInStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
FileInStream.h Initial commit 2020-09-20 12:16:44 +00:00
FixedMemOutStream.h Initial commit 2020-09-20 12:16:44 +00:00
HexInStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
HexInStream.h Initial commit 2020-09-20 12:16:44 +00:00
HexOutStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
HexOutStream.h Initial commit 2020-09-20 12:16:44 +00:00
InStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
InStream.h Initial commit 2020-09-20 12:16:44 +00:00
MemInStream.h Initial commit 2020-09-20 12:16:44 +00:00
MemOutStream.h Initial commit 2020-09-20 12:16:44 +00:00
OutStream.h Initial commit 2020-09-20 12:16:44 +00:00
RandomStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
RandomStream.h Initial commit 2020-09-20 12:16:44 +00:00
SubstitutingInStream.h Initial commit 2020-09-20 12:16:44 +00: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 Initial commit 2020-09-20 12:16:44 +00:00
TLSInStream.h Initial commit 2020-09-20 12:16:44 +00:00
TLSOutStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
TLSOutStream.h Initial commit 2020-09-20 12:16:44 +00:00
types.h Initial commit 2020-09-20 12:16:44 +00:00
ZlibInStream.cxx Make ZlibInStream more robust against failures 2020-09-21 12:40:12 +03:00
ZlibInStream.h Make ZlibInStream more robust against failures 2020-09-21 12:40:12 +03:00
ZlibOutStream.cxx Initial commit 2020-09-20 12:16:44 +00:00
ZlibOutStream.h Initial commit 2020-09-20 12:16:44 +00:00