]> source.dussan.org Git - tigervnc.git/commit
Use size_t for lengths in stream objects
authorPierre Ossman <ossman@cendio.se>
Mon, 23 Sep 2019 09:00:17 +0000 (11:00 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 15 Nov 2019 10:55:05 +0000 (11:55 +0100)
commit0943c006c7d900dfc0281639e992791d6c567438
tree9393960c3d86df32f6186a6feeb4fecfec376699
parent4ff58f0acaeb566b79ae12cf013b376eaaaab834
Use size_t for lengths in stream objects

Provides safety against them accidentally becoming negative because
of bugs in the calculations.

Also does the same to CharArray and friends as they were strongly
connection to the stream objects.
32 files changed:
common/rdr/FdInStream.cxx
common/rdr/FdInStream.h
common/rdr/FdOutStream.cxx
common/rdr/FdOutStream.h
common/rdr/FileInStream.cxx
common/rdr/FileInStream.h
common/rdr/HexInStream.cxx
common/rdr/HexInStream.h
common/rdr/HexOutStream.cxx
common/rdr/HexOutStream.h
common/rdr/InStream.h
common/rdr/MemInStream.h
common/rdr/MemOutStream.h
common/rdr/OutStream.h
common/rdr/RandomStream.cxx
common/rdr/RandomStream.h
common/rdr/TLSInStream.cxx
common/rdr/TLSInStream.h
common/rdr/TLSOutStream.cxx
common/rdr/TLSOutStream.h
common/rdr/ZlibInStream.cxx
common/rdr/ZlibInStream.h
common/rdr/ZlibOutStream.cxx
common/rdr/ZlibOutStream.h
common/rfb/Configuration.cxx
common/rfb/Configuration.h
common/rfb/Password.cxx
common/rfb/Password.h
common/rfb/util.h
tests/perf/encperf.cxx
win/rfb_win32/Registry.cxx
win/rfb_win32/Registry.h