Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-r.b-one.net (mx-r.one.com [91.198.169.249])
	by mail9.b-one.net (Postfix) with ESMTP id 63EC340042C
	for <info@awaresystems.be>; Mon, 10 Jan 2011 21:46:25 +0100 (CET)
Received: by mx-r.b-one.net (Postfix, from userid 106)
	id 59E882E6725D; Mon, 10 Jan 2011 21:46:25 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=4 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-r.b-one.net (Postfix) with ESMTP id A7C102E67254 for
 <info@awaresystems.be>; Mon, 10 Jan 2011 21:46:24 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id E1FEB869BC; Mon, 10 Jan 2011
 15:45:13 -0500 (EST)
Received: from mail.sidefx.com (mail.sidefx.com [38.99.137.163]) by
 lists.maptools.org (Postfix) with ESMTPS id AFD7986A18 for
 <tiff@lists.maptools.org>; Mon, 10 Jan 2011 15:35:36 -0500 (EST)
Message-ID: <4D2B6D85.5040701@sidefx.com>
Date: Mon, 10 Jan 2011 15:35:17 -0500
From: Edward Lam <edward@sidefx.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13)
 Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <4D2B315F.3010104@gatewaygeomatics.com>
 <4D2B3AE6.9090303@sidefx.com> <4D2B5707.1030501@gatewaygeomatics.com>
In-Reply-To: <4D2B5707.1030501@gatewaygeomatics.com>
Subject: Re: [Tiff] Missing mkstemp() on Visual Studio 2008
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On 1/10/2011 1:59 PM, Jeff McKenna wrote:
> Thank you for your response.  The changes made through this ticket
> recently (http://bugzilla.maptools.org/show_bug.cgi?id=2118) indeed
> changed from using tmpfile() to mkstemp().  I am unable to compile on
> Windows because of this change.  How should I compile CVS HEAD on
> windows therefore?

Then I move that the patch be reverted. Why was it even necessary to use 
mkstemp() when we don't care about the file name? Not to mention that 
the new code uses a fixed length buffer that could in theory cause a 
buffer overflow.

-Edward
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
