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

Array functions in shell can cause stall

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.1.6
    • Fix Version/s: 3.1.7
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Epic Link:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: