Subject: port-sparc/1771: problem w/ KIOCGETKEY ioctl in sparc/dev/kbd.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bwalker@musings.com>
List: netbsd-bugs
Date: 11/16/1995 21:35:28
>Number: 1771
>Category: port-sparc
>Synopsis: problem w/ KIOCGETKEY ioctl in sparc/dev/kbd.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 17 01:05:02 1995
>Last-Modified:
>Originator: Brad Walker
>Organization:
Digital Musings, Inc.
>Release: gnats-3.95
>Environment:
NetBSD netbsd 1.0A NetBSD 1.0A (SUN4C) #0
>Description:
the following truncates the top byte of HOLE
((struct okiockey *)data)->kio_entry = (u_char)HOLE;
HOLE is defined value that is greater than a u_char
which is what kio_entry is.
>How-To-Repeat:
>Fix:
typecast the value of HOLE or change the value of kio_entry
in struct okiockey
>Audit-Trail:
>Unformatted: