Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-h.one.com (mx-h.one.com [91.198.169.55])
	by mail6.local (Postfix) with ESMTP id C5B428014FACA
	for <filtered@awaresystems.be>; Mon, 10 Jun 2013 20:56:36 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-h: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.215.42 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42])
	by mx-h.one.com (Postfix) with ESMTP id 8A94F1025C9B
	for <filtered@awaresystems.be>; Mon, 10 Jun 2013 18:56:36 +0000 (UTC)
Received: by mail-la0-f42.google.com with SMTP id eb20so6087222lab.1
        for <filtered@awaresystems.be>; Mon, 10 Jun 2013 11:56:36 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-forwarded-to:x-forwarded-for:delivered-to:domainkey-status
         :x-gmail-fetch-info:delivered-to:x-virus-scanned:x-greylist:date
         :from:x-x-sender:to:in-reply-to:message-id:references:user-agent
         :mime-version:x-greylist:cc:subject:x-beenthere:x-mailman-version
         :precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-type:content-transfer-encoding
         :sender:errors-to;
        bh=5BDGqjjbKGJ6smAHBuhLISPiefTzqjpxI42CKNvG6ag=;
        b=JZaUhiaOrRd7gVXhRdrPaq75tfTiLmoUGSf85Qne1xMqMm6tcD5PGVumMsbJWpYXZ1
         DaqL5TO9tsvnFFYMfwwe/CTGY1NcfKA1NRrs3PKWZUzxiNEpgDUiRvLEJS0mEbcfGP5l
         UAs2lc3+iiQRu4fJ5wH21VU7LwQeriXRLRnUrxaQLKtFUsy+mAxWkSWd3PdQmKyVMBwR
         uk/5LYktjX8jQKyWRHiU0ds5PGFGXN1Wf5HjAfFVVMQTSjWi6pX2AAA/1rvLaqukCihC
         2zPW1FLnM7hkTHSkTvNGKybcRJA/kGQuQe6PZkl6dgx+51eXKf/lmwf+rzCIQWs0Nr/R
         Gqkg==
X-Received: by 10.152.27.102 with SMTP id s6mr5704344lag.47.1370890595809;
        Mon, 10 Jun 2013 11:56:35 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.114.82.70 with SMTP id g6csp103851ldy;
        Mon, 10 Jun 2013 11:56:35 -0700 (PDT)
X-Received: by 10.152.28.129 with SMTP id b1mr2937299lah.51.1370890594401;
        Mon, 10 Jun 2013 11:56:34 -0700 (PDT)
DomainKey-Status: bad format
Received-SPF: neutral (google.com: 91.198.169.250 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=91.198.169.250;
Received: by 10.152.101.84 with POP3 id fe20mf2899036lab.5;
        Mon, 10 Jun 2013 11:56:34 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-s.one.com (mx-s.one.com [91.198.169.250])
	by mail6.local (Postfix) with ESMTP id B3EC28014FACA
	for <info@awaresystems.be>; Mon, 10 Jun 2013 20:18:18 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (ks365428.kimsufi.com [94.23.4.142])
	by mx-s.one.com (Postfix) with ESMTP id 8D1AD464276
	for <info@awaresystems.be>; Mon, 10 Jun 2013 18:18:18 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 32CCD35C036;
	Mon, 10 Jun 2013 13:17:10 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id 5FC6135C036
	for <tiff@lists.maptools.org>; Mon, 10 Jun 2013 13:16:05 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	r5AIFwsR020270; Mon, 10 Jun 2013 13:15:58 -0500 (CDT)
Date: Mon, 10 Jun 2013 13:15:58 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Christos Charalambous <chrischaralambous80@gmail.com>
In-Reply-To: <CAL5BmcSAZLK=2KTidKAh4OZD=8H1V3u5adTeak8Pwmh9zxXVXQ@mail.gmail.com>
Message-ID: <alpine.GSO.2.01.1306101313170.7509@freddy.simplesystems.org>
References: <CAL5BmcSAZLK=2KTidKAh4OZD=8H1V3u5adTeak8Pwmh9zxXVXQ@mail.gmail.com>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Mon, 10 Jun 2013 13:15:59 -0500 (CDT)
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Detection of corrupted TIFF files bug
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 Mon, 10 Jun 2013, Christos Charalambous wrote:
> 
> The problem is that although some of the images are detected correctly as corrupted , others which are scanned correctly are dete
> cted as corrupted as well . Those that are wrongly detected as corrupted , have a big resolution , but i don't think that this ha
> s anything to do with it .

Why do you assume that image resolution has nothing to do with it? 
The interface you are using (ReadRGBAImage()) needs to buffer the 
whole decoded image in RAM and so it is likely that the system does 
not have sufficient memory available to support high resolution 
images.

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/
