X server crashes with large timer
Submitted by Mike
Assigned to Xorg Project Team
Description
This bug has been observed on the X11 server on Mac OS X, both the Apple and the XQuartz versions, has been reported at XQuartz.macosforge.org, but redirected to freedesktop.org (see http://xquartz.macosforge.org/trac/ticket/553). I am guessing as to the correct product and component.
Symptoms: Start an ssh session from a Mac client to a Linux host, using "ssh -X" and the following entry in the client's /etc/ssh_config:
ForwardX11Timeout 597h
The client's X server starts up and then immediately crashes without any message. With this setting:
ForwardX11Timeout 596h
there is no problem.
The difference between the two cases is that 596 hours is < 2^31 milliseconds and 597 hours is > 2^31 milliseconds. Some overflow condition is occurring and the server crashes. Instead, it should either report an invalid value, or clamp the value at 2^31 - 1 or whatever is the maximum allowed.