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 E3AA68015359E
	for <filtered@awaresystems.be>; Sun, 28 Apr 2013 16:22:34 +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.217.169 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169])
	by mx-h.one.com (Postfix) with ESMTP id A6D04355953
	for <filtered@awaresystems.be>; Sun, 28 Apr 2013 14:22:34 +0000 (UTC)
Received: by mail-lb0-f169.google.com with SMTP id z5so282913lbh.0
        for <filtered@awaresystems.be>; Sun, 28 Apr 2013 07:22:34 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received
         :domainkey-status:received-spf: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=iIrYZ3G7x/cv71PhaSjl04Fm0xUGxA9sdD2enn9sKp4=;
        b=Kx7fkBzL6YHebS6zhlB3UgZzmF4yX9nkgePxn/AslMY3o0OqT9YiBojogEDWGbu08/
         0AQNUTwl5YuFIUJqyLap/0O3JRMA9NqKv3I4sUvotiTCKPayggrcM3DDpaxye0C45JET
         XDGRxo3b4XQT+BGTU2mk7jsPsnryqibiY5Z38Fh8EEVyfswz4lwFdd2KXKFAY/IHGL3q
         5UvzshmogEZRv3nfcHtOgTCFO6/IJPa8gDkGRwADn+ytfUi1tNj0r4kdjt35WF8U4B9Z
         13igtzuu2qVvg5xOdxMKIeDkkks9sbITDB3BL+YBsjmczRhi2UVD9BVHA554XWPKpu0h
         qEhw==
X-Received: by 10.112.181.163 with SMTP id dx3mr6071909lbc.126.1367158954129;
        Sun, 28 Apr 2013 07:22:34 -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.29.36 with SMTP id g4csp35571ldh;
        Sun, 28 Apr 2013 07:22:33 -0700 (PDT)
X-Received: by 10.112.173.225 with SMTP id bn1mr25590189lbc.92.1367158952498;
        Sun, 28 Apr 2013 07:22:32 -0700 (PDT)
DomainKey-Status: bad format
Received-SPF: neutral (google.com: 91.198.169.51 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=91.198.169.51;
Received: by 10.152.102.204 with POP3 id fq12mf3882879lab.6;
        Sun, 28 Apr 2013 07:22:32 -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-d.one.com (mx-d.one.com [91.198.169.51])
	by mail6.local (Postfix) with ESMTP id 609678019408F
	for <info@awaresystems.be>; Sun, 28 Apr 2013 16:00:52 +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-d.one.com (Postfix) with ESMTP id 377A6B86E63
	for <info@awaresystems.be>; Sun, 28 Apr 2013 14:00:52 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id A6FE135C02E;
	Sun, 28 Apr 2013 08:59:39 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id 1E75E35C02E
	for <Tiff@lists.maptools.org>; Sun, 28 Apr 2013 08:51:03 -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
	r3SDp0MX011910; Sun, 28 Apr 2013 08:51:00 -0500 (CDT)
Date: Sun, 28 Apr 2013 08:51:00 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Steve McKinney <smckinney@titlescan.com>
In-Reply-To: <001401ce43bf$ad04a3a0$070deae0$@titlescan.com>
Message-ID: <alpine.GSO.2.01.1304280847571.2267@freddy.simplesystems.org>
References: <000001ce438f$03348140$099d83c0$@titlescan.com>
	<alpine.GSO.2.01.1304272019570.2267@freddy.simplesystems.org>
	<001401ce43bf$ad04a3a0$070deae0$@titlescan.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]);
	Sun, 28 Apr 2013 08:51:01 -0500 (CDT)
Cc: Tiff@lists.maptools.org
Subject: Re: [Tiff] Problem with TIFFReadEndcodeStrip()
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 Sat, 27 Apr 2013, Steve McKinney wrote:
> I understand the effect of setting TIFFTAG_JPEGCOLORMODE to
> JPEGCOLORMODE_RGB, but why is it necessary for me to do this in order to
> prevent an access violation when calling TIFFReadEncodedStrip()?  For what
> it's worth, the access violation occurred when reading strip zero, and the
> buffer I passed was large enough to hold the entire decoded image.  Under
> what circumstances do I need to set TIFFTAG_JPEGCOLORMODE to
> JPEGCOLORMODE_RGB?   Always?  Only when the photometric interpretation is
> YCbCr?  Is it not possible to read a JPEG compressed TIFF in YCbCr format
> without converting it to RGB?  If so, shouldn't that be the default behavior
> under the circumstances?  Certainly an access violation doesn't seem
> desirable.

Access violations are not desireable.  What versions of libtiff and 
libjpeg are you using?  Are you able to provide your small sample TIFF 
file which causes the crash?

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/
