You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In crates/graphite_binary/src/nbt/decode.rs the read_list function uses Vec::with_capacity(length as _). However, length has no upper bound. I believe malicious input could potentially allocate i32::MAX * sizeof(usize) bytes.
The other read functions are correctly bounded.
The text was updated successfully, but these errors were encountered:
In
crates/graphite_binary/src/nbt/decode.rs
theread_list
function usesVec::with_capacity(length as _)
. However,length
has no upper bound. I believe malicious input could potentially allocatei32::MAX * sizeof(usize)
bytes.The other read functions are correctly bounded.
The text was updated successfully, but these errors were encountered: