mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-06 17:37:47 +08:00
fix(ci): align lint-safe security paths
This commit is contained in:
@@ -790,6 +790,7 @@ mod tests {
|
||||
)
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn assert_sensitive_bodies_disabled(
|
||||
request_body: &Option<Value>,
|
||||
request_body_ref: &Option<String>,
|
||||
|
||||
@@ -1412,8 +1412,12 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn bounded_report_body_decode_rejects_oversized_encoded_values_before_allocation() {
|
||||
let encoded =
|
||||
"A".repeat(((super::MAX_INTERNAL_REPORT_BODY_BYTES + 2) / 3 * 4).saturating_add(4));
|
||||
let encoded = "A".repeat(
|
||||
super::MAX_INTERNAL_REPORT_BODY_BYTES
|
||||
.div_ceil(3)
|
||||
.saturating_mul(4)
|
||||
.saturating_add(4),
|
||||
);
|
||||
let error = super::decode_internal_report_body_base64(&encoded)
|
||||
.expect_err("oversized report body must be rejected before decoding");
|
||||
assert!(error.contains("internal report body exceeds"));
|
||||
|
||||
Reference in New Issue
Block a user