Re: [Cbor] Magic number

worley@ariadne.com (Dale R. Worley) Fri, 06 December 2019 04:03 UTC

Return-Path: <worley@alum.mit.edu>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2BD81120077 for <cbor@ietfa.amsl.com>; Thu, 5 Dec 2019 20:03:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.683
X-Spam-Level:
X-Spam-Status: No, score=-1.683 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcastmailservice.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KjGkGQLRpRMJ for <cbor@ietfa.amsl.com>; Thu, 5 Dec 2019 20:03:01 -0800 (PST)
Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9DFAA12000F for <cbor@ietf.org>; Thu, 5 Dec 2019 20:03:01 -0800 (PST)
Received: from resomta-ch2-06v.sys.comcast.net ([69.252.207.102]) by resqmta-ch2-07v.sys.comcast.net with ESMTP id d404iIVWRnEC3d4pYiEMJ1; Fri, 06 Dec 2019 04:03:00 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1575604980; bh=Dvq3f7LIYgY1aYNPCssYLqv9CwaMuqVgsaRhcQpKUMY=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID; b=W207yW/m1dLZhfBRZnFRhO3xe3vMySeqP0xr6rit+s0kTSJhkZx2UK/U5mqNwSpv6 tUtstM4HKfuzxtyZmTjmNNmNuwsg4eptOnRGxZ4PnitLM+PuIXFB4YGZxiBnR2GonC Z9gY0p40/jhbVvrMea0RE3jJ3T1W+/hzsGvhDlE7zrs7F4O/TEcUe3rliEK2+3gcW0 ULzms32lLqmVTDNRluzuwuJsvJ0o0hW4v2zCqd288tfgOayuIOgpb7KoIKZD8bWT9Y oUZmJqR3xYMn9knJOlfDFaPAap9fGIFersJuSYRMlRGBhxrP0sIfB6yMfRZpuJncqN ztQ8txcEBf2Ew==
Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4600:1e00:222:fbff:fe91:d396]) by resomta-ch2-06v.sys.comcast.net with ESMTPA id d4pVi0zlmXFOod4pWikF5T; Fri, 06 Dec 2019 04:02:59 +0000
X-Xfinity-VMeta: sc=-100.00;st=legit
Received: from hobgoblin.ariadne.com (hobgoblin.ariadne.com [127.0.0.1]) by hobgoblin.ariadne.com (8.14.7/8.14.7) with ESMTP id xB642uYS025341; Thu, 5 Dec 2019 23:02:56 -0500
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id xB642txl025327; Thu, 5 Dec 2019 23:02:55 -0500
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
In-Reply-To: <953945BD-E435-4DDA-BC0A-EE7A8C4C36C6@tzi.org> (cabo@tzi.org)
Sender: worley@ariadne.com
Date: Thu, 05 Dec 2019 23:02:54 -0500
Message-ID: <8736dy2j9t.fsf@hobgoblin.ariadne.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/sDoLmvYnw59f_qLffZDj2DhzVJU>
Subject: Re: [Cbor] Magic number
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Dec 2019 04:03:03 -0000

Carsten Bormann <cabo@tzi.org> writes:
> However, not all CBOR carries this magic number.

> I don't know if there is a way to say that "there is an optional magic
> number defined that can be used by applications that want to use it"
> in a media type registration.

Functionally, I don't see this as a problem, as I've never known of an
application that definitively rejected a file as not having a particular
content type unless the application had specific knowledge of the
details of the content type.  OTOH, the "file" utility and others will
differentiate a great number of content types based on the presence of
magic numbers.  That is, people generally assume that "file" can produce
false negatives.

Dale