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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.5.2
    • None
    • None
    • ALL

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: