Fix UB in decimal128_test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 3.3.6
    • Affects Version/s: 3.3.5
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Hide

      Run unittests with UBSAN

      Show
      Run unittests with UBSAN
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      src/mongo/platform/decimal128_test.cpp:868:5: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself

              Assignee:
              Geert Bosch
              Reporter:
              Geert Bosch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: