Limit parsing in cluster geoNear performs unsafe conversion to int

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.7
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • Query 2017-05-08
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Tess Avitabile (Inactive)
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: