[SERVER-20071] Add range-checking to allocatePorts shell helper Created: 20/Aug/15 Updated: 28/Aug/15 Resolved: 28/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell, Testing Infrastructure |
| Affects Version/s: | 3.1.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Kamran K. | Assignee: | Kamran K. |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: |
|
||||||||
| Participants: | |||||||||
| 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. |
| Comments |
| Comment by Kamran K. [ 28/Aug/15 ] |
|
Charlie is adding range checks as part of |