Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 2 Jan 2002 19:51:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 2 Jan 2002 19:49:29 -0500 Received: from NILE.GNAT.COM ([205.232.38.5]:3810 "HELO nile.gnat.com") by vger.kernel.org with SMTP id ; Wed, 2 Jan 2002 19:49:16 -0500 From: dewar@gnat.com To: dewar@gnat.com, jtv@xs4all.nl Subject: Re: [PATCH] C undefined behavior fix Cc: gcc@gcc.gnu.org, jbuck@synopsys.COM, linux-kernel@vger.kernel.org, linuxppc-dev@lists.linuxppc.org, paulus@samba.org, trini@kernel.crashing.org, velco@fadata.bg Message-Id: <20020103004916.20ABCF2EC4@nile.gnat.com> Date: Wed, 2 Jan 2002 19:49:16 -0500 (EST) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org <> Ah! But you can compare it, and on a segmented architecture like the 286, the address just past the end of the array can wrap to zero if the array is allocated right up to the end of the segment. This is not theory, at least one C compiler on the 286 had this bug! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/