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

Add range-checking to allocatePorts shell helper

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 3.1.6
    • None
    • Fully Compatible
    • ALL
    • Hide

      allocatePorts(Infinity);
      

      Show
      allocatePorts(Infinity);

    Description

      The allocatePorts helper allows you to specify a port number that exceeds 2^16 - 1. It's also possible for the function to hang if you specify a very large 'n' offset.

      We should add range-checking for general correctness and to make jstestfuzz less likely to hang the shell.

      Attachments

        Activity

          People

            kamran.khan Kamran K.
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: