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

Fix crash in shell_utils when using simple collator

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 8.1.0-rc0
    • Component/s: Shell
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2024-11-25
    • 200

      BF-35734 surfaced an issue in the mongo (shell) executable.

      The shell's `_compareStringsWithCollation` function creates a collator object from BSON and then calls a method on it.

      However, `CollatorFactoryICU` can also return a nullptr when the BSON object contains

      { locale: "simple" }
      

      In this case the caller must check the returned value for not being a nullptr.

            Assignee:
            jan.steemann@mongodb.com Jan Steemann
            Reporter:
            jan.steemann@mongodb.com Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: