pub struct ImageMetadataLimits {
pub max_decompressed_bytes: u64,
pub max_xml_depth: u32,
pub max_xml_events: u64,
pub max_boxes: u64,
pub max_rows: u64,
pub max_output_bytes: u64,
}Expand description
The image-metadata parser ceilings, held as rules data beside the
records ceilings so a deployment raises them in a visible versioned
bump. The parent reads them from the registry and passes them into
the jailed worker, which enforces them and fails a source over any
ceiling with a stable image-metadata-* reason. The metadata worker
runs behind the shared platform-default jail, so these are the
parser-surface ceilings only, not the wall-clock and address-space
envelope the runner already imposes.
Fields§
§max_decompressed_bytes: u64Inflated-size ceiling for any single compressed text block, the
png zTXt and compressed iTXt streams above all. Checked
incrementally during inflation so a decompression bomb is stopped
before it lands.
max_xml_depth: u32Nesting-depth ceiling for an xmp parse.
max_xml_events: u64Event-count ceiling for an xmp parse.
max_boxes: u64Box-count ceiling for an iso base media file format carrier.
max_rows: u64Ceiling on emitted metadata rows across all surfaces.
max_output_bytes: u64Ceiling on the rendered value bytes, under the runner response cap.
Trait Implementations§
Source§impl Clone for ImageMetadataLimits
impl Clone for ImageMetadataLimits
Source§impl Debug for ImageMetadataLimits
impl Debug for ImageMetadataLimits
Source§impl Default for ImageMetadataLimits
impl Default for ImageMetadataLimits
Source§fn default() -> ImageMetadataLimits
fn default() -> ImageMetadataLimits
Source§impl<'de> Deserialize<'de> for ImageMetadataLimits
impl<'de> Deserialize<'de> for ImageMetadataLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ImageMetadataLimits
impl RefUnwindSafe for ImageMetadataLimits
impl Send for ImageMetadataLimits
impl Sync for ImageMetadataLimits
impl Unpin for ImageMetadataLimits
impl UnsafeUnpin for ImageMetadataLimits
impl UnwindSafe for ImageMetadataLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more