Skip to content

Division by zero if a 0-width RAW rect is sent #197

Open
jalfd opened this Issue Oct 10, 2012 · 0 comments

1 participant

@jalfd
jalfd commented Oct 10, 2012

In display_raw() in rfb.js, the expression ws.rQlen()/(FBU.width * fb_Bpp) is problematic if FBU.width is zero.

Obviously, the server should not be sending empty rects in the first place, but we came across a problem where it happened, and currently it causes NoVNC to disconnect entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.