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

Add range-checking to allocatePorts shell helper

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 3.1.6
    • None
    • Fully Compatible
    • ALL
    • Hide
      allocatePorts(Infinity);
      
      Show
      allocatePorts(Infinity);

      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.

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

              Created:
              Updated:
              Resolved: