Description
BinarySerializer::write_length_encoded unwraps the result of _encode_variable_length_prefix(&byte_object.len()). When the encoded field's length exceeds MAX_LENGTH_VALUE (918,744 bytes), the helper returns an Err, and the unwrap panics. The source already has // TODO Handle unwrap better.
Location
Impact / Severity
Medium — Panic on large field. A Blob, AccountID list, Memos field, or STArray exceeding 918 KB panics the encoder.
Adversarial Agent Notes
Verdict: ACCEPT.
Description
BinarySerializer::write_length_encodedunwraps the result of_encode_variable_length_prefix(&byte_object.len()). When the encoded field's length exceedsMAX_LENGTH_VALUE(918,744 bytes), the helper returns anErr, and the unwrap panics. The source already has// TODO Handle unwrap better.Location
Impact / Severity
Medium — Panic on large field. A Blob, AccountID list, Memos field, or STArray exceeding 918 KB panics the encoder.
Adversarial Agent Notes
Verdict: ACCEPT.