Trait minidump_common::traits::IntoRangeMapSafe
source · [−]pub trait IntoRangeMapSafe<V>: IntoIterator<Item = (Option<Range<u64>>, V)> + Sized where
V: Clone + Debug + Eq, {
fn into_rangemap_safe(self) -> RangeMap<u64, V> { ... }
}
Expand description
This trait exists to allow creating RangeMap
s from possibly-overlapping input data.
The RangeMap
struct will panic if you attempt to initialize it with overlapping data,
and we deal with many sources of untrusted input data that could run afoul of this.
Upstream issue