RFC Errata


Errata Search

 
Source of RFC  
Summary Table Full Records

RFC 7049, "Concise Binary Object Representation (CBOR)", October 2013

Source of RFC: IETF - NON WORKING GROUP
Area Assignment: app

Errata ID: 4409

Status: Reported
Type: Technical

Reported By: Jim Schaad
Date Reported: 2015-07-06

Section 3.9 says:

  The sorting rules are:

      *  If two keys have different lengths, the shorter one sorts
         earlier;

      *  If two keys have the same length, the one with the lower value
         in (byte-wise) lexical order sorts earlier.

It should say:

  The sorting rules are:

      *  If the major types are different, the one with the lower value
          in numerical order sorts earlier.

      *  If two keys have different lengths, the shorter one sorts
         earlier;

      *  If two keys have the same length, the one with the lower value
         in (byte-wise) lexical order sorts earlier.

Notes:

As the rules are currently written, The integer -257 would be sorted after the integer 16 because has a length of 2 rather than a length of 1. First rule says shorter keys sort first. However the text above says the sorting is based on the byte representation of the key.

Report New Errata