Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perms.cc: Replace variable length arrays with new and delete[]
There were two uses of variable length arrays in perms.cc. These did not cause problems in normal use but did show up as potentially undefined behavior with `-fsanitize=undefined` because the array length was not constrained to be positive. This changeset replaces them with explicit dynamic memory allocation using new/delete[].
- Loading branch information