# must fail: abr_out_of_bounds_options abr_out_of_bounds_figures # options past the bound read (abr::check_state) diff --git a/wai/wai-rs/src/http_binding/abr.rs b/wai/wai-rs/src/http_binding/abr.rs index 6fb8973c..9dace574 100644 --- a/wai/wai-rs/src/http_binding/abr.rs +++ b/wai/wai-rs/src/http_binding/abr.rs @@ -53,7 +53,7 @@ pub const MAX_OPTIONS: usize = 256; /// field below 2^32, each byte count, figure and budget below 2^64): at most /// [`MAX_OPTIONS`] options and figures. pub fn check_state(s: &AbrState) -> Result<(), AbrError> { - if s.option_bytes.len() > MAX_OPTIONS || s.option_joules_micro.len() > MAX_OPTIONS { + if false { return Err(AbrError("more options than 256")); } Ok(())