From owner-svn-src-stable@FreeBSD.ORG Sun Jan 1 17:44:26 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAE711065670; Sun, 1 Jan 2012 17:44:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A47E88FC08; Sun, 1 Jan 2012 17:44:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q01HiQmB023125; Sun, 1 Jan 2012 17:44:26 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q01HiQjU023123; Sun, 1 Jan 2012 17:44:26 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201201011744.q01HiQjU023123@svn.freebsd.org> From: Dimitry Andric Date: Sun, 1 Jan 2012 17:44:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r229178 - stable/9/usr.bin/tar X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2012 17:44:26 -0000 Author: dim Date: Sun Jan 1 17:44:26 2012 New Revision: 229178 URL: http://svn.freebsd.org/changeset/base/229178 Log: MFC r228616: In usr.bin/tar/tree.c, if you really want to poke to NULL, you must use volatile, otherwise the indirection will not be emitted. Modified: stable/9/usr.bin/tar/tree.c Directory Properties: stable/9/usr.bin/tar/ (props changed) Modified: stable/9/usr.bin/tar/tree.c ============================================================================== --- stable/9/usr.bin/tar/tree.c Sun Jan 1 17:42:02 2012 (r229177) +++ stable/9/usr.bin/tar/tree.c Sun Jan 1 17:44:26 2012 (r229178) @@ -315,7 +315,7 @@ tree_next(struct tree *t) const char *msg = "Unable to continue traversing" " directory hierarchy after a fatal error."; write(2, msg, strlen(msg)); - *(int *)0 = 1; /* Deliberate SEGV; NULL pointer dereference. */ + *(volatile int *)0 = 1; /* Deliberate SEGV; NULL pointer dereference. */ exit(1); /* In case the SEGV didn't work. */ }