JuliaLang/julia
Ver no GitHubDisplaying array with unsigned indices throws
Open
#53.907 aberto em 31 de mar. de 2024
display and printinggood first issue
Métricas do repositório
- Stars
- (48.709 stars)
- Métricas de merge de PR
- (Mesclagem média 23d 11h) (145 fundiu PRs em 30d)
Description
In the spirit of #44895, displaying an AbstractArray subtype with unsigned indices can throw an OutOfMemory exception. The offending lines are
https://github.com/JuliaLang/julia/blob/a3f710e2a35402bb7f7f96f874e6c696dfc911da/base/arrayshow.jl#L138-L141
The max(0, difference of unsigned) is obviously not safe.