Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23712

Aggregation unit tests use signed integer overflow

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Run the aggregation unit tests under the undefined behavior sanitizer

      Show
      Run the aggregation unit tests under the undefined behavior sanitizer
    • Sprint:
      Platforms 13 (04/22/16)

      Description

      The aggregation arithmetic operations are specified to wrap, but they are implemented in terms of signed integral types. The unit tests for these operations are written such that expected values are formed by forcing signed integral values to overflow, expecting that they wrap, which is undefined behavior.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: