From owner-cvs-all@FreeBSD.ORG Wed Oct 22 02:00:09 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E210A16A4BF; Wed, 22 Oct 2003 02:00:09 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92BF443FE0; Wed, 22 Oct 2003 02:00:08 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9M908XJ064718; Wed, 22 Oct 2003 02:00:08 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9M9088d064717; Wed, 22 Oct 2003 02:00:08 -0700 (PDT) (envelope-from marcel) Message-Id: <200310220900.h9M9088d064717@repoman.freebsd.org> From: Marcel Moolenaar Date: Wed, 22 Oct 2003 02:00:07 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/ia64/gen fpgetmask.c fpsetmask.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2003 09:00:10 -0000 marcel 2003/10/22 02:00:07 PDT FreeBSD src repository Modified files: lib/libc/ia64/gen fpgetmask.c fpsetmask.c Log: The FP status register allows for 6 traps to be masked. One of them, the denormal/unnormal trap, is not a standard IEEE trap. We did not exclude it from being returned by fpgetmask(), nor did we make sure that fpsetmask() didn't clobber it. Since the non-IEEE trap is not part of fp_except_t, users of ifpgetmask()/fpsetmask() would be confronted with unexpected behaviour, one of which is a SIGFPE for denormal/unnormal FP results. This commit makes sure that we don't leak the denormal/unnormal mask bit in fp_except_t and also that we don't clobber it. Revision Changes Path 1.4 +1 -1 src/lib/libc/ia64/gen/fpgetmask.c 1.4 +2 -2 src/lib/libc/ia64/gen/fpsetmask.c