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

Array functions in shell can cause stall

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 3.1.6
    • 3.1.7
    • Shell
    • Minor Change
    • ALL

    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

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

              Dates

                Created:
                Updated:
                Resolved: