BSONElement size computation is also responsible for validating the element type

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      • valuesize() uses element type to check size.
      • It needs to validate all bits of the type, not just the low 5 bits. One option (not the only one) is to use a 256-byte static array, rather than a 32-byte one.

            Assignee:
            Alex Li
            Reporter:
            Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: