#[non_exhaustive]pub struct Limits {Show 15 fields
pub max_width: u32,
pub max_height: u32,
pub max_pixels_per_page: u64,
pub max_decoder_managed_memory_bytes: u64,
pub max_stream_bytes: u64,
pub max_pages: u32,
pub max_segments: u32,
pub max_symbols: u32,
pub max_references_per_segment: u32,
pub max_total_references: u64,
pub max_reference_graph_depth: u32,
pub max_nesting_depth: u32,
pub max_work_units: u64,
pub max_cumulative_decoded_bitmap_bytes: u64,
pub max_retained_state_bytes: u64,
}Expand description
Explicit resource limits for untrusted JBIG2 input.
The defaults implement the approved Phase 1 resource envelope. Callers may use stricter values. Every field is an inclusive maximum.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_width: u32Maximum page or region width.
max_height: u32Maximum page or region height.
max_pixels_per_page: u64Maximum pixels in one page or bitmap.
max_decoder_managed_memory_bytes: u64Maximum concurrently decoder-managed bytes.
max_stream_bytes: u64Maximum bytes consumed from one input stream.
max_pages: u32Maximum pages in one decode operation.
max_segments: u32Maximum segments in one decode operation.
max_symbols: u32Maximum symbols in one decode operation.
max_references_per_segment: u32Maximum references declared by one segment.
max_total_references: u64Maximum references across one decode operation.
max_reference_graph_depth: u32Maximum reference-graph traversal depth.
max_nesting_depth: u32Maximum nested decoding depth.
max_work_units: u64Maximum abstract work units charged by a decode operation.
max_cumulative_decoded_bitmap_bytes: u64Maximum cumulative decoded bitmap bytes.
max_retained_state_bytes: u64Maximum bytes retained for segment and global state.