JuliaLang/julia

Displaying array with unsigned indices throws

Open

#53.907 geöffnet am 31. März 2024

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Julia (5.773 Forks)batch import
display and printinggood first issue

Repository-Metriken

Stars
 (48.709 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 23T 11h) (145 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide