JuliaLang/julia

Displaying array with unsigned indices throws

Open

#53,907 建立於 2024年3月31日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Julia (5,773 fork)batch import
display and printinggood first issue

倉庫指標

Star
 (48,709 star)
PR 合併指標
 (平均合併 20天 6小時) (30 天內合併 157 個 PR)

描述

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.

貢獻者指南