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

Safely handle large numbers in KeyPattern

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-05-27
    • 200

      The class doesn't validate or transform the input and tries to convert it to integer type using the unsafe BSONElement::numberInt() method. We should switch to BSONElement::safeNumberInt()

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: