[Cbor] 4.3.2 Malformed Indefinite-Length Items

Joe Hildebrand <jhildebrand@mozilla.com> Wed, 30 January 2019 20:16 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 6759E130E92 for <cbor@ietfa.amsl.com>; Wed, 30 Jan 2019 12:16:30 -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 zMmc4-xSt0LB for <cbor@ietfa.amsl.com>; Wed, 30 Jan 2019 12:16:27 -0800 (PST)
Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 B7043130E58 for <cbor@ietf.org>; Wed, 30 Jan 2019 12:16:27 -0800 (PST)
Received: by mail-io1-xd35.google.com with SMTP id l14so684278ioj.5 for <cbor@ietf.org>; Wed, 30 Jan 2019 12:16:27 -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=IaqdFWwqHAONs+r9xd8gQso9VJDUKP6XYS0Zm4/kWDo=; b=E5JSkwqUVjRE2DH5Ayf03NJwIS6oM4jDYAPKETJTmINig2/v/B8otpovKPFH2dUmKp HKxLb09TaP+ZwlVpsv1E1QwbYgVJP6pXo9m6xi2HbhAZnXEOyIoD2J6tI5jfzmim/yE8 BlpSYeNfDz0OnuO/BdB61xIhXNbpdQOr0luWY=
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=IaqdFWwqHAONs+r9xd8gQso9VJDUKP6XYS0Zm4/kWDo=; b=ODFNH7Ys6hLJnKLYV3s7hcLS5MI/Q9jySE7nVJ2Y4am7qaM0RwWvClZY406/0RsPT3 xe6TNO3Z83XQCWmfc7m96LJCsanpeEwUKvN8i0zRexWfru4NSgNunoQjho/YwQFxbkc+ OPjCnXxefsjUF70km+0WO04zd/2fxEZEzu7hKdoolrK8dFFwDdEK/8xBbMsxq8xsFHkb 6CAO/m9bqWS0MeIK029+VQ/s4aFluuNUS4XTxU4wawIToLptt9D8jMQ5XYsR+L3+AkdT bdVrWH/0I08OcGqLQJvki76zSG4J81mO3j9X0C3NbayhShuvMWKE0tR+0xVPlqKuPeaC ydCQ==
X-Gm-Message-State: AHQUAuaBIqYVNGHGYQgky+lWQrxYDTVZ9SkwCvR6GrmJAR/q43mElXzc 0Zm4xkvpnYus4P6nIHCcNpftqJ1AhjU=
X-Google-Smtp-Source: AHgI3IY+R3Fas6zAUMzhhvMatQWvNsDvILr0DUYj1wyIEyQ+FZyfD4Z+GIeKo+2TiLPUuEzHMT08xA==
X-Received: by 2002:a6b:b902:: with SMTP id j2mr18826392iof.220.1548879386806; Wed, 30 Jan 2019 12:16:26 -0800 (PST)
Received: from [10.6.17.71] ([128.177.113.102]) by smtp.gmail.com with ESMTPSA id j7sm1021939iom.80.2019.01.30.12.16.26 for <cbor@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 12:16:26 -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:16:25 -0700
References: <3da886c762564d20a75796733ec73e23@pdv-FS.de>
To: "cbor@ietf.org" <cbor@ietf.org>
In-Reply-To: <3da886c762564d20a75796733ec73e23@pdv-FS.de>
Message-Id: <560D9506-9A73-4418-9400-1B7E3B283724@mozilla.com>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/PBcGIq0Bz7F7N8-bdpoW4UUGEcY>
Subject: [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:16:30 -0000

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