Explorar el Código

Fix bad size check in Tight decoder

Fallout from beb59a43.
tags/v1.9.90
Pierre Ossman hace 5 años
padre
commit
3648c70422
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      common/rfb/TightDecoder.cxx

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

@@ -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;

Cargando…
Cancelar
Guardar