pub struct InflateLimits {
pub max_entry_bytes: u64,
pub max_ratio: u64,
pub max_dex_total_bytes: u64,
}Expand description
Caps on what reading an APK may inflate, against zip bombs. The default
only rejects what Deflate cannot produce; Limits::guarded is for
sweeping untrusted APKs in bulk.
Fields§
§max_entry_bytes: u64Most bytes one entry may inflate to.
max_ratio: u64Most an entry may expand over its compressed payload.
max_dex_total_bytes: u64Most bytes all root DEX entries together may declare.
Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more