-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check permutation size before calling reserve() in WaksmanPermuterFor…
…BitString (#459) Summary: In T139444907 the NCC made us aware of the fact that an array of size 1 would cause the permuter to throw and exception. This is due to the bit size calculation for a single value permutation to return -1 as the required size. Pull Request resolved: #459 Reviewed By: xyguo Differential Revision: D42014844 fbshipit-source-id: 5f78009c9845204052b7c7f9da36518858aac839
- Loading branch information
1 parent
e576615
commit 3612374
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters