Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-594

Throw exception if Timestamp arguments are out of range

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.3
    • Affects Version/s: 1.1.2
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: