Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash in
getFilePathMaxTailNumPlus1
Check that result of `opendir()` is not `NULL`, before calling `readdir()` as later might crash if called with NULL argument, as one can see in https://godbolt.org/z/f3daEbPTx This was the underlying source of crash in pytorch-2.1 on aarch64 platform when run inside the docker container, see pytorch/pytorch#111695 (comment)
- Loading branch information