[Cbor] Fwd: [Technical Errata Reported] RFC7049 (5917)

Carsten Bormann <cabo@tzi.org> Sun, 24 November 2019 01:58 UTC

Return-Path: <cabo@tzi.org>
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 0CD71120045 for <cbor@ietfa.amsl.com>; Sat, 23 Nov 2019 17:58:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level:
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 QcGruVf6-ILt for <cbor@ietfa.amsl.com>; Sat, 23 Nov 2019 17:58:30 -0800 (PST)
Received: from gabriel-vm-2.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A697F120013 for <cbor@ietf.org>; Sat, 23 Nov 2019 17:58:29 -0800 (PST)
Received: from [192.168.217.116] (p548DC893.dip0.t-ipconnect.de [84.141.200.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.uni-bremen.de (Postfix) with ESMTPSA id 47LCxb4YNkz10v2; Sun, 24 Nov 2019 02:58:27 +0100 (CET)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="Apple-Mail=_4C6CCCAB-B84C-4A20-B584-D55731D32961"
X-Mao-Original-Outgoing-Id: 596253505.3359489-d319903be5de4787878440f67b132e9a
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Sun, 24 Nov 2019 02:58:27 +0100
Message-Id: <DAAD547D-DA33-493B-A4B9-05963C256995@tzi.org>
References: <AA0336B9-FC3C-4E88-ADB9-5D22FC2881EF@tzi.org>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/tJGv2ytyCIk-cWf00iCdPJJ-WgY>
Subject: [Cbor] Fwd: [Technical Errata Reported] RFC7049 (5917)
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: Sun, 24 Nov 2019 01:58:33 -0000

Whoops.

Which brings up the idea: Maybe we can start a campaign alerting the implementers to our WGLC?
I started in https://github.com/fxamacker/cbor/issues/46 <https://github.com/fxamacker/cbor/issues/46>, but there are three score implementations remaining…

Grüße, Carsten


> Begin forwarded message:
> 
> From: Carsten Bormann <cabo@tzi.org>
> Subject: Re: [Technical Errata Reported] RFC7049 (5917)
> Date: November 24, 2019 at 02:44:28 GMT+1
> To: RFC Errata System <rfc-editor@rfc-editor.org>
> Cc: Paul Hoffman <paul.hoffman@vpnc.org>, iesg@ietf.org, faye.github@gmail.com
> 
> This errata report is correct.
> 
> We fixed this in the 7049bis document (which is currently in working-group last call) in revision f3bde9d: https://github.com/cbor-wg/CBORbis/commit/f3bde9d .  Unfortunately, it didn’t occur to us to also supply an errata report, which should have been done.
> 
> Grüße, Carsten
> 
> 
>> On Nov 24, 2019, at 02:06, RFC Errata System <rfc-editor@rfc-editor.org> wrote:
>> 
>> The following errata report has been submitted for RFC7049,
>> "Concise Binary Object Representation (CBOR)".
>> 
>> --------------------------------------
>> You may review the report below and at:
>> https://www.rfc-editor.org/errata/eid5917
>> 
>> --------------------------------------
>> Type: Technical
>> Reported by: Faye Amacker <faye.github@gmail.com>
>> 
>> Section: Appendix A
>> 
>> Original Text
>> -------------
>> simple(24)                   | 0xf818  
>> 
>> Corrected Text
>> --------------
>> 
>> 
>> Notes
>> -----
>> This example violates RFC 7049 section 2.3 Floating-Point Numbers and Values with No Content.  
>> 
>> The incorrect example in Appendix A clearly uses a value <32 which is not allowed.
>> 
>> First, RFC 7049 section 2.3 has a table that shows:
>> | 24          | Simple value (value 32..255 in following byte)   |
>> 
>> Next, RFC 7049 section 2.3 says:
>> As with all other major types, the 5-bit value 24 signifies a single-
>> byte extension: it is followed by an additional byte to represent the
>> simple value.  (To minimize confusion, only the values 32 to 255 are
>> used.)
>> 
>> Wikipedia is also currently incorrect by having an interpretation based on the incorrect example from RFC 7049 Appendix A instead of the text from RFC 7049 Section 2.3.
>> 
>> Credits: This problem was first reported at https://github.com/fxamacker/cbor/issues/46
>> 
>> Instructions:
>> -------------
>> This erratum is currently posted as "Reported". If necessary, please
>> use "Reply All" to discuss whether it should be verified or
>> rejected. When a decision is reached, the verifying party  
>> can log in to change the status and edit the report, if necessary. 
>> 
>> --------------------------------------
>> RFC7049 (draft-bormann-cbor-09)
>> --------------------------------------
>> Title               : Concise Binary Object Representation (CBOR)
>> Publication Date    : October 2013
>> Author(s)           : C. Bormann, P. Hoffman
>> Category            : PROPOSED STANDARD
>> Source              : IETF - NON WORKING GROUP
>> Area                : N/A
>> Stream              : IETF
>> Verifying Party     : IESG
>