From owner-freebsd-alpha@FreeBSD.ORG Sun Oct 10 02:20:21 2004 Return-Path: Delivered-To: freebsd-alpha@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7D8E16A4CE for ; Sun, 10 Oct 2004 02:20:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3B9943D1F for ; Sun, 10 Oct 2004 02:20:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i9A2KLFR098389 for ; Sun, 10 Oct 2004 02:20:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9A2KLNE098388; Sun, 10 Oct 2004 02:20:21 GMT (envelope-from gnats) Date: Sun, 10 Oct 2004 02:20:21 GMT Message-Id: <200410100220.i9A2KLNE098388@freefall.freebsd.org> To: freebsd-alpha@FreeBSD.org From: Peter Edwards Subject: Re: alpha/72024: LONG_MIN / 1 sends a "Floating exception" X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Peter Edwards List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 02:20:22 -0000 The following reply was made to PR alpha/72024; it has been noted by GNATS. From: Peter Edwards To: freebsd-gnats-submit@FreeBSD.org, ppelissi@caramail.com Cc: Subject: Re: alpha/72024: LONG_MIN / 1 sends a "Floating exception" Date: Sun, 10 Oct 2004 03:12:19 +0100 Er, After realising that this source came from NetBSD, I checked their CVS repo, and found it already fixed there with an equivalent patch. There's also an equivalent in the kernel: /usr/src/sys/alpha/alpha/divrem.m4. The kernel case might be a security issue if you could find a syscall that would do arbitrary (assuming not by zero!) division of 64-bit values.