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

UB on min int in push_node.cpp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Query 2019-04-22

      Sign reversal on an integer with minimum value is UB. push_node.cpp contains an unprotected unary minus on an integer that is based on user input. https://github.com/mongodb/mongo/blob/6d56e6da95f9aa3792f5b234edb6c9117be3663f/src/mongo/db/update/push_node.cpp#L220

            Assignee:
            ian.boros@mongodb.com Ian Boros
            Reporter:
            jacob.evans@mongodb.com Jacob Evans
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: