An issue was discovered in LibVNCServer before 0.9.13. libvncserver/corre.c allows out-of-bounds access via encodings.
Created libvncserver tracking bugs for this issue:
Affects: epel-7 [bug 1860369]
Affects: fedora-all [bug 1860368]
in libvncserver/corre.c's subrectEncode##bpp() rectangle encoder, there's a potential out-of-bounds read due to && operator order. The patch reverses the order. This flaw could potentially cause undefined behavior or a crash if the width (w) is incorrect.