mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-06-24 13:22:06 +00:00
fix vncproxy on windows 2008 rfb proto parse bug
Uint8 value range out of bounds causes problems in the parsing protocol
This commit is contained in:
parent
f19a75749b
commit
a870f3cbb9
@ -142,7 +142,7 @@ func handleTightFilters(subencoding uint8, pixelFmt *common.PixelFormat, rect *c
|
||||
return
|
||||
}
|
||||
|
||||
paletteSize := colorCount + 1 // add one more
|
||||
paletteSize := int(colorCount) + 1 // add one more
|
||||
logger.Debugf("handleTightFilters: ----PALETTE_FILTER: paletteSize=%d bytesPixel=%d\n", paletteSize, bytesPixel)
|
||||
//complete palette
|
||||
_, err = r.ReadBytes(int(paletteSize) * bytesPixel)
|
||||
|
Loading…
Reference in New Issue
Block a user