Sfoglia il codice sorgente

Fix bad size check in Tight decoder

Fallout from beb59a43.
tags/v1.9.90
Pierre Ossman 5 anni fa
parent
commit
3648c70422
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      common/rfb/TightDecoder.cxx

+ 1
- 1
common/rfb/TightDecoder.cxx Vedi File

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

Loading…
Annulla
Salva