Ver código fonte

Fix bad size check in Tight decoder

Fallout from beb59a43.
tags/v1.9.90
Pierre Ossman 5 anos atrás
pai
commit
3648c70422
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      common/rfb/TightDecoder.cxx

+ 1
- 1
common/rfb/TightDecoder.cxx Ver arquivo

@@ -269,7 +269,7 @@ void TightDecoder::decodeRect(const Rect& r, const void* buffer,
size_t len = palSize * 3;
rdr::U8Array tightPalette(len);

assert(buflen >= sizeof(len));
assert(buflen >= len);

memcpy(tightPalette.buf, bufptr, len);
bufptr += len;

Carregando…
Cancelar
Salvar