Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-672

BinarySubtype::from mishandles reserved values

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

      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@mongodb.com Abraham Egnor
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: