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

Limit parsing in cluster geoNear performs unsafe conversion to int

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.7
    • None
    • Querying
    • None
    • Fully Compatible
    • ALL
    • Query 2017-05-08
    • 0

    Description

      Limit parsing in cluster geoNear calls BSONElement::numberInt() here. This can result in undefined behavior, since all that is known about the BSONElement is that it is a number. Instead we should call BSONElement::safeNumberLong(), like in geoNear limit parsing in mongod here.

      Attachments

        Activity

          People

            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: