libvncserver
libvncserver copied to clipboard
Fix 15bpp handling across encoders
Due to some incorrect rounding of division, the trle and zrle encoders erroneously used 1 byte for 15bpp formats instead of 2 bytes. This led to much of the output buffer being left uninitialized.
Note: this issue was discovered via #681.