Throw exception if Timestamp arguments are out of range

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.3
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The BSON specification defines a timestamp's components as two 32-bit integer values (timestamp and increment). If a 64-bit integer is passed on an allowing platform, the values could be silently truncated to uint32_t types when calling bson_append_timestamp(). We should throw an exception if the arguments exceed the range of 32-bit integers.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: