Re: [Cbor] 4.3.2 Malformed Indefinite-Length Items

Joe Hildebrand <jhildebrand@mozilla.com> Wed, 30 January 2019 20:39 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 54290130FFF for <cbor@ietfa.amsl.com>; Wed, 30 Jan 2019 12:39:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 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] 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 lYBxxjJlAY1n for <cbor@ietfa.amsl.com>; Wed, 30 Jan 2019 12:39:29 -0800 (PST)
Received: from mail-it1-x131.google.com (mail-it1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 6C20B130FE6 for <cbor@ietf.org>; Wed, 30 Jan 2019 12:39:29 -0800 (PST)
Received: by mail-it1-x131.google.com with SMTP id i145so404971ita.4 for <cbor@ietf.org>; Wed, 30 Jan 2019 12:39:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=qWOngYZHqTgNuLao2uh6avxSV+k6TaVbVNkmwaE2FBk=; b=Bu2GOOWrBiFNzDjX1IoGLdv0QyLSI54DfHMS1rICRzQ83Sy/gzsNVvKCBnYZazDqig 5GHUGQ69BSCJ3AnmGiu2hnrlSQn34whK/R4eVn5onIgOinLapbbrAc27LzEspIolMCyE akV6emmmNxMjcZi0q8lH7oKpZbLOX6pDkY7/A=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=qWOngYZHqTgNuLao2uh6avxSV+k6TaVbVNkmwaE2FBk=; b=nmKKzj8IzdfO5i4FEXtSpTcyCaq4tDHn88r6t9QqV9GrViTFYt1u6/bVQRkLoyNsbJ 6sk0+XgD6O4Mh8BCirNJkmvpslQ7beM7XvUhH6mFotbr20kBL0C+mzJT/70d9pNv1byV sFWjY4Jhn8383VoEULuXUbsZmlaN489mZpY7secLO3NES5+JoESSKR2QOE+ZgsXP79V3 yw131HigCyGgBwR9OdNjFOlZaZp947gZ0qrRiSNe/e+GOj6Z38Ce7MqMaLfD4W1auCpn 43egkX3uVr7fyTSrWdvzEuUjJr4eG1EvKBPpUIWI7qcr/50WfxReW5ywz25A0vIKMfhm CcUA==
X-Gm-Message-State: AJcUukeB9JPLvEKndOdMDF2PF755J98rkd383sdS/wzXWw0o3D8ob4px PtpFl+90WERlcM3lhLS9B1cQJKYI82g=
X-Google-Smtp-Source: ALg8bN5tp0C6MZvPGLEhb5nkdMzZyc16sKRv0MrFTLL/SRcpR3YI1VD9bEzF9aSrCbuQogkSo/a98A==
X-Received: by 2002:a02:b697:: with SMTP id i23mr19728803jam.119.1548880768419; Wed, 30 Jan 2019 12:39:28 -0800 (PST)
Received: from [10.6.17.71] ([128.177.113.102]) by smtp.gmail.com with ESMTPSA id q23sm1118884iog.63.2019.01.30.12.39.27 for <cbor@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 12:39:27 -0800 (PST)
From: Joe Hildebrand <jhildebrand@mozilla.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Date: Wed, 30 Jan 2019 13:39:27 -0700
References: <3da886c762564d20a75796733ec73e23@pdv-FS.de> <560D9506-9A73-4418-9400-1B7E3B283724@mozilla.com>
To: "cbor@ietf.org" <cbor@ietf.org>
In-Reply-To: <560D9506-9A73-4418-9400-1B7E3B283724@mozilla.com>
Message-Id: <88103D77-0D71-404F-AF72-D5B25F4A605C@mozilla.com>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/m1Qa7q4Fx2y2XoJQzr94hSAnyuE>
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:39:31 -0000

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