ValueReader::fromBSONElement elicits undefined behavior when interpreting NumberLong

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Hide

      Run the 'core' js suite under ubsan.

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

      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 (Inactive)
              Reporter:
              Andrew Morrow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: