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

ValueReader::fromBSONElement elicits undefined behavior when interpreting NumberLong

    • Fully Compatible
    • ALL
    • Hide

      Run the 'core' js suite under ubsan.

      Show
      Run the 'core' js suite under ubsan.
    • Platforms 15 (06/03/16)

      In the NumberLong case of ValueReader::fromBSONElement, a great deal of casting between numeric types occurs, but this can elicit undefined behavior when values out of range for one type are cast through another.

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

              Created:
              Updated:
              Resolved: