Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-m.b-one.net (mx-m.one.com [91.198.169.60])
	by mail9.b-one.net (Postfix) with ESMTP id 1D0BE400165
	for <info@awaresystems.be>; Thu, 22 Jan 2009 18:03:18 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 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-m.b-one.net (Postfix) with ESMTP id 5712818CCA1B
	for <info@awaresystems.be>; Thu, 22 Jan 2009 18:03:17 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 053FB1D18E128;
	Thu, 22 Jan 2009 12:02:43 -0500 (EST)
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by lists.maptools.org (Postfix) with ESMTP id A01151D18E11A
	for <tiff@lists.maptools.org>; Thu, 22 Jan 2009 12:00:14 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	n0MH0EJE023945; Thu, 22 Jan 2009 11:00:14 -0600 (CST)
Date: Thu, 22 Jan 2009 11:00:14 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Edward Lam <edward@sidefx.com>
In-Reply-To: <49789D94.6020302@sidefx.com>
Message-ID: <Pine.SOC.4.64.0901221054070.25129@freddy.simplesystems.org>
References: <49769F6C.4020908@pobox.com> <49778F6A.6080700@sidefx.com>
	<49789D94.6020302@sidefx.com>
MIME-Version: 1.0
Cc: TIFF mailing list <tiff@lists.maptools.org>
Subject: Re: [Tiff] libtiff 4.0.0beta3
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 Thu, 22 Jan 2009, Edward Lam wrote:
>
> I did a pass using the canonical build instructions for MSVC and got
> some additional warnings similar to:
>
> tif_lzw.c(389) : warning C4244: '+=' : conversion from 'tmsize_t' to
> 'long', possible loss of data
> tif_lzw.c(606) : warning C4244: '+=' : conversion from 'tmsize_t' to
> 'long', possible loss of data
> tif_lzw.c(715) : warning C4244: '=' : conversion from 'tmsize_t' to
> 'long', possible loss of data

This type of warning is quite worrysome.  For Windows builds, the 
'long' type is always 32-bit whereas it is usually 64-bit on Unix 
systems.  Undetected overflow will result in wrong processing, and may 
represent an available security exploit.

Can you post the full list of such warnings?

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

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