OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

mqtt message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (MQTT-296) Variable Byte Integer decode does not check for shortest encoding


Ken Borgendale created MQTT-296:
-----------------------------------

             Summary: Variable Byte Integer decode does not check for shortest encoding
                 Key: MQTT-296
                 URL: https://issues.oasis-open.org/browse/MQTT-296
             Project: OASIS Message Queuing Telemetry Transport (MQTT) TC
          Issue Type: Bug
          Components: core
    Affects Versions: 5
            Reporter: Ken Borgendale


The algorithm shown for decoding a Variable Byte Integer (section 1.5.5) does not check for non-minimal length encodings.  For instance the byte sequence 0x80,0x80,0x80,0x01 would decode the value 1 even though this encoding does not match the requirements in the normative text.

If we mean to allow non-minimal length encodings of Variable Byte Integer then we should say so, otherwise we should clearly state the only the minimum length encoding is allowed, and change the decode algorithm to detect this and throw an error.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]