Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx1.pub.mailpod2-cph3.one.com ([10.27.25.11])
	by mailstorage18.cst.mailpod2-cph3.one.com (Dovecot) with LMTP id PlVNMcPMXVoarQEAQS8vrQ
	for <filtered@awaresystems.be>; Tue, 16 Jan 2018 10:04:22 +0000
X-HalOne-ID: 9f7657a2-faa4-11e7-afe6-e0d848957041
Received: from mail-ot0-f178.google.com (unknown [74.125.82.178])
	by mx1.pub.mailpod2-cph3.one.com (Halon) with ESMTPS
	id 9f7657a2-faa4-11e7-afe6-e0d848957041;
	Tue, 16 Jan 2018 10:04:22 +0000 (UTC)
Received: by mail-ot0-f178.google.com with SMTP id t20so3774913ote.11
        for <filtered@awaresystems.be>; Tue, 16 Jan 2018 02:04:22 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :to:from:message-id:date:user-agent:mime-version:content-language
         :subject:precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-transfer-encoding:sender:errors-to;
        bh=BlCjEr5rIivbVnkbQwbIGDdd65MkLlze+Sw9UARRel8=;
        b=n8lU0uGS5/gzR2SDucphMD0UfLASJYTjk+kqaT9I82SGWR8n6qEHUu2cVrs32PuHd1
         tKbB3TksPuZmOuoJeTmf3mHKMIAYDLHAroUWaP8c9IFUnhvwK74cpkaQklq6QLWxNCZb
         U3q/QZMLnIVn65n5Vui/wKN+JskLpOOD2ara8G7Xme57bZMbGTFNO8pomhzmb/7cyRyq
         0LPZzE/mvPPogxEOOo5522JbvsADDbD7AlPf8iia4hddxui7Rr3Y9AMeQLYO6enHEko2
         4kn5Nr59BUI0OBXPV5wMOTIyAMBYNNc8gC9qhB2x44+1hN9GOe+1xMFg6J3kwj3rZu5q
         xz6w==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
X-Gm-Message-State: AKwxytcHTRrpHjWHMR4jyx2NOorV2mbRbTYagYsQ5g85YT9SeTRWjKRK
	vpCTKvZ3KQ3wYMWaxx7NlqiWf5wgjCoQDvpzpeonKChzbVdKp3A=
X-Received: by 10.157.50.5 with SMTP id t5mr9569454otc.172.1516097060997;
        Tue, 16 Jan 2018 02:04:20 -0800 (PST)
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.202.235.11 with SMTP id j11csp3958245oih;
        Tue, 16 Jan 2018 02:04:19 -0800 (PST)
X-Google-Smtp-Source: ACJfBouvmt+kAVIU+2E5GyzY9j6PV9IG+3KLeQSoW7JG1rP66OzRJkZ/B+cqBCXWgITffp5560pq
X-Received: by 10.28.28.133 with SMTP id c127mr13856012wmc.149.1516097059805;
        Tue, 16 Jan 2018 02:04:19 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1516097059; cv=none;
        d=google.com; s=arc-20160816;
        b=hjDjoGN9BpyOf+x+TRJ6dSr4tkN/ZAbezVpP0BqjlwB5Xghz+uqoJ6LRQf2oCq5/1H
         ye/Lew7IIiruafKEMhGo8hHmd/Uz3StvxVcRZMHERJNLiQtGsa5Iy1Pr5TZk+2D23rpe
         x4ZUddyGW9MgVuLZCKwCH3aHBgU9YUAY24OgMjI5egu2UXCMtI9p4pTGzzfvAsRO4FDj
         ydIimA9imxh6OIcq19Z7c3MuA06wS738rzXnZtu0Eo9haV9/3fnZLfyzarU7kJQ4Trit
         x8QL5bXI7KKmOHqo2giC2j9rCbT8T6bSwauxSo/VRI5Gi46kNAd9XFh1X34atLesulFc
         afyg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help
         :list-post:list-archive:list-unsubscribe:list-id:precedence:subject
         :content-language:mime-version:user-agent:date:message-id:from:to
         :arc-authentication-results;
        bh=BlCjEr5rIivbVnkbQwbIGDdd65MkLlze+Sw9UARRel8=;
        b=RH3cZUl9S1z1P51mgDQ8uSfCgCb7wJYlBvSSdk83QIF19W56F7E7J0GX4CLH82Nwsu
         GbTswL09wamUVMK1HxVKW+VTKkvrTVxSBgEdq1Q2tF4IhEHTRqZCkQt/kMAvZVJa4LU9
         mXsW8tXWRKy9ZyW9TAOUgCKqgVsTuFaNFPsl8eQCtmE/esFbgvqEuaMsiNpP9JH3sF3g
         0Pqr7hNhEqb4YnX5/OpTP8kNcBl7JxhsCVgHg6vdntG4xRyvezQx5Sbd5D1iYshAIbTD
         cTIwFZzyGq5sZ2aqsZb6t99QFOtI2tB3MfgB05nXvtU8WDFL9R2eZge+0K1o9NOcKUOa
         hlOQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id n13si1169287wrn.309.2018.01.16.02.04.18;
        Tue, 16 Jan 2018 02:04:19 -0800 (PST)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 76EF735C099;
	Tue, 16 Jan 2018 05:03:21 -0500 (EST)
Received: from email.uni-linz.ac.at (email.edvz.uni-linz.ac.at [140.78.3.65])
	by lists.maptools.org (Postfix) with ESMTPS id 7A1EF35C038
	for <tiff@lists.maptools.org>; Tue, 16 Jan 2018 04:58:21 -0500 (EST)
Received: from [140.78.127.157] (unknown [140.78.127.157])
	by email.uni-linz.ac.at (Postfix) with ESMTP id 63C6119B858
	for <tiff@lists.maptools.org>; Tue, 16 Jan 2018 10:58:21 +0100 (CET)
To: tiff@lists.maptools.org
From: Robert Pollak <robert.pollak@jku.at>
Message-ID: <36a1fd69-2458-b2fa-d435-0f911000858a@jku.at>
Date: Tue, 16 Jan 2018 10:58:21 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
	Thunderbird/52.5.0
MIME-Version: 1.0
Content-Language: en-US
Subject: [Tiff] Reading custom TIFF_SSHORT tag causes assertion "we should
 never get here"
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

Hello,

I have used libtiff to write TIFF files containing custom tags with the
following TIFFFieldInfo:

{37023,-1,-1,TIFF_SSHORT,FIELD_CUSTOM, 1,1, "ProcessStatus"}

When I now read such a file with libtiff (4.0.6), the function
TIFFFetchNormalTag reaches the default case with the line:
assert(0);    /* we should never get here */

This happens because set_field_type becomes TIFF_SETGET_C16_SINT16,
which is not listed in the switch statement (also on current Git master).

The assertion means that the tag is not read, doesn't it?

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