Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757575AbYBERCp (ORCPT ); Tue, 5 Feb 2008 12:02:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751716AbYBERCi (ORCPT ); Tue, 5 Feb 2008 12:02:38 -0500 Received: from saraswathi.solana.com ([198.99.130.12]:35301 "EHLO saraswathi.solana.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981AbYBERCh (ORCPT ); Tue, 5 Feb 2008 12:02:37 -0500 Date: Tue, 5 Feb 2008 12:02:34 -0500 From: Jeff Dike To: Jim Meyering Cc: linux-kernel Mailing List Subject: Re: [PATCH] uml: handle unusual results from find_tempdir. Message-ID: <20080205170234.GB9694@c2.user-mode-linux.org> References: <87d4rb8j6l.fsf@rho.meyering.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d4rb8j6l.fsf@rho.meyering.net> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 685 Lines: 21 On Tue, Feb 05, 2008 at 05:25:06PM +0100, Jim Meyering wrote: > > An alternative: make find_tempdir set tempdir to default_tempdir > upon malloc failure. > > * arch/um/os-Linux/mem.c (make_tempfile): Handle NULL tempdir. > Don't let a long tempdir (e.g., via TMPDIR) provoke heap corruption. > > Signed-off-by: Jim Meyering Thanks, I'll forward this on. Jeff -- Work email - jdike at linux dot intel dot com -- 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/