Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Raise recursion and memory error during dimension discovery
This mitigates gh-17785 on the 1.19.x branch. Note that the actual problem seems to have more layers, so that the bad code will still cause crashes on certain systems or call contexts (I am not sure). Pre 1.19.x did not check for `__array__` in the dimension discovery code, so was unaffected by the issue in gh-17785.
- Loading branch information
Showing
2 changed files
with
65 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