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

SafeNum int32/int32 and int64/int64 internal addition routines rely on undefined behavior

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      In safe_num.cpp, the addInt32Int32 and addInt64Int64 routines incorrectly assume meaningful outcomes from signed integer overflow, which is actually undefined behavior.

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: