Patch-ID# 100478-01
Keywords: cte1737, open, system, leaving, xlock, key, return, crashes, security
Synopsis: OpenWindows V3: xlock crashes leaving system open
Date: 14/Feb/92

SunOS release: 4.1.x

Unbundled Product: OpenWindows

Unbundled Release: 3.0

Topic: OW 3.0 xlock patch

BugId's fixed with this patch: 1077337

Architectures for which this patch is available: sun4

Patches which may conflict with this patch: None

Obsoleted by:

Files included with this patch: xlock

Problem Description: 
	When a screen is locked with xlock, continuous keypresses generated
	by holding the <RETURN> or <ENTER> keys down will cause the xnews
	server to consume memory since xlock isn't promptly consuming events.
	This consumes about 8 Mb of swap per hour on a SS-2. When the swap is
	exhausted either xlock or the xnews server exits leaving the system
	unsecure. The problem is that xlock has performed a keyboard grab
	and doesn't process the return key case quickly enough causing events
	to queue up indefinitely in the xnews server comsuming an ever
	increasing amount of memeory / swap. The patch fixes this bug by
	efficiently processing these keypresses.

This patch fixes the following bugids :

BUGID	DESCRIPTION
1077337 xlock crashes when handling many return keypresses leaving system open

Install Instructions: 

	1) cd to $OPENWINHOME/bin
	2) su to root
	3) get patch id from current xlock using strings xlock | grep -i patch
	4) if patch_id exists
		mv xlock xlock.patch_id_123456_89
		where patch_id_123456_89 is recorded from step #3
           else
		mv xlock xlock.30fcs
	5) cp patched xlock to xlock
	6) chmod 755 xlock
