Date_t and Duration addition can overflow

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.6, 4.1.7
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • v4.0
    • Sharding 2018-12-17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The following code leads to a silent overflow:

      auto badDate = Date_t::max() + Milliseconds(1);
      

      This should throw an exception instead.

            Assignee:
            Matthew Saltz (Inactive)
            Reporter:
            Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: