Re: [Cbor] 4.3.2 Malformed Indefinite-Length Items

Joe Hildebrand <jhildebrand@mozilla.com> Wed, 30 January 2019 20:56 UTC

Return-Path: <jhildebrand@mozilla.com>
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 E597D130FE6 for <cbor@ietfa.amsl.com>; Wed, 30 Jan 2019 12:56:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mozilla.com
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 Opy_6ENIrx_8 for <cbor@ietfa.amsl.com>; Wed, 30 Jan 2019 12:55:58 -0800 (PST)
Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5C5E413132D for <cbor@ietf.org>; Wed, 30 Jan 2019 12:55:58 -0800 (PST)
Received: by mail-io1-xd2b.google.com with SMTP id x6so746032ioa.9 for <cbor@ietf.org>; Wed, 30 Jan 2019 12:55:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Dil8kwUmEXQUU//gQz8REW4zslffRFgS6bH1fJzjNSY=; b=gO3oh8ylweYDIZ9tYv+Y+XQz8qeokElKLJUks0gIzZF9Xr6djyAhFSbqyjJybAskJr A5tI+9tdeL3Q5Fw8yQne17IpzZHf8VEvxUNObg9/mWhJE0QbIaldG+ehiIyVN00+6Dfe KIHr9Hmob967o1ytqQxZeD7xnydB7rHpzniF8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Dil8kwUmEXQUU//gQz8REW4zslffRFgS6bH1fJzjNSY=; b=j57HMqSOKyyeK14BziA6WO+KVoDksRG1l660xe+Lr4I9xU5F8S7Dh39mZhBL1zfdSh ujt8yU/z+CAVdCA6eIR7UknWCM5OQG8++oE2WDn94GMJPFZ/6xbSAP14S5SrvKgbM19F lTwx9LmidJuwAGQH2Pf2ThaUyPJRy8/eUP42VjE5lIc+gO/G6b/P9Jvnesjhs8/5OA/R 2+DnEZlge9nG90RN396ZChgOXviqFpDcAg/Zel2hQLC8TKAFm6loAPtA9ErOkH8ManQ2 kHw7tOT3p4QMR0ZSkpYoGAlgbrvGeoW7/2L08aksGtzrLIYiNMcE48mAnrQdVCaPbpcA 5DGA==
X-Gm-Message-State: AHQUAub1E5FEOrcyyUXQe5ithfTVMgjCB2K8Iq6MPEtz9JYleZ/HBH0k NDq5REjFeBgZ0jt+lIzYAG6BaAzHP88=
X-Google-Smtp-Source: ALg8bN6Iz62M/IGeBjpKdPp0rRcr1kEL8zNksoEzMge5YPHx5RloRP1AZA7A1ComTzpN6/NSXWcj1g==
X-Received: by 2002:a6b:c815:: with SMTP id y21mr17215051iof.98.1548881757451; Wed, 30 Jan 2019 12:55:57 -0800 (PST)
Received: from [10.6.17.71] ([128.177.113.102]) by smtp.gmail.com with ESMTPSA id a10sm1791283itc.3.2019.01.30.12.55.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 12:55:56 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
From: Joe Hildebrand <jhildebrand@mozilla.com>
In-Reply-To: <49a063f9cb834f79b84ae7c8d61d0193@pdv-FS.de>
Date: Wed, 30 Jan 2019 13:55:55 -0700
Cc: "cbor@ietf.org" <cbor@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <DF8E1EA5-BD47-4C1A-82A8-8CD70865DE7F@mozilla.com>
References: <3da886c762564d20a75796733ec73e23@pdv-FS.de> <560D9506-9A73-4418-9400-1B7E3B283724@mozilla.com> <88103D77-0D71-404F-AF72-D5B25F4A605C@mozilla.com> <49a063f9cb834f79b84ae7c8d61d0193@pdv-FS.de>
To: "\"Richter, Jörg\"" <Joerg.Richter@pdv-FS.de>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/UpHOMV-20MivAe3Vg3Gs81CzoEI>
Subject: Re: [Cbor] 4.3.2 Malformed Indefinite-Length Items
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: Wed, 30 Jan 2019 20:56:03 -0000

Yes.  I meant it is *invalid* for 0, 1, or 6.

> On Jan 30, 2019, at 1:46 PM, Richter, Jörg <Joerg.Richter@pdv-FS.de> wrote:
> 
> You mean the opposite? It is used for 2,3,4 and 5.
> 
> ________________________________________
> Von: Joe Hildebrand <jhildebrand@mozilla.com>
> Gesendet: Mittwoch, 30. Januar 2019 21:39:27
> An: cbor@ietf.org
> Betreff: Re: [Cbor] 4.3.2 Malformed Indefinite-Length Items
> 
> Sorry, just 0, 1, or 6.  MT 7 with Indefinite Encoding is FF or "Break".
> 
>> On Jan 30, 2019, at 1:16 PM, Joe Hildebrand <jhildebrand@mozilla.com> wrote:
>> 
>> Jörg's test cases pointed out a bullet point that we might want to add to section 4.3.2.
>> 
>> - The Indefinite-Length encoding is used for major type 0, 1, 6, or 7.
>> 
>> --
>> Joe Hildebrand
> 
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor