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

Array functions in shell can cause stall

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.1.7
    • Affects Version/s: 3.1.6
    • Component/s: Shell
    • Labels:
    • Minor Change
    • ALL

      In types.js there are a multiple helper functions added to Array that do not properly check that the array argument being passed to them is actually an array. This can lead to a stall in the shell if an object with property length set to a large number (or Infinity) is passed as an argument to one of these functions.

      Affected functions:

      • Array.contains
      • Array.unique
      • Array.shuffle
      • Array.tojson
      • Array.fetchRefs
      • Array.sum
      • Array.stdDev

      This is causing issues in jstestfuzz.

            Assignee:
            j.delaney J Delaney
            Reporter:
            j.delaney J Delaney
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: