BinarySubtype::from mishandles reserved values

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • bson-2.0.0-beta.2
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BinarySubtype::from currently will put any reserved-but-not-yet-used subtype value (i.e. less than 0x80 but greater than 0x06) into the BinarySubtype::UserDefined variant, instead of a reserved one. We should introduce a BinarySubtype::Reserved variant for this use case.

              Assignee:
              Abraham Egnor
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: