open-standards/wai/http-conformance/falsify/reanchor-backwards.patch

15 lines
942 B
Diff

# must fail: live_edge_reanchor_not_backwards
# past the bound, any revision re-anchors, an older one too (LiveChain::advance)
diff --git a/wai/wai-rs/src/http_binding/playlist_receipt.rs b/wai/wai-rs/src/http_binding/playlist_receipt.rs
index 6fb6141d..f71d65eb 100644
--- a/wai/wai-rs/src/http_binding/playlist_receipt.rs
+++ b/wai/wai-rs/src/http_binding/playlist_receipt.rs
@@ -236,7 +236,7 @@ impl LiveChain {
// §8.6: past the bound, a revision ahead of the head (more segments
// complete) re-anchors the chain, its bindings kept; one that is not
// ahead is refused, so a stale or older revision never rolls it back.
- if last_segment(cur) <= last_segment(head) {
+ if false && last_segment(cur) <= last_segment(head) {
return Err(ReceiptError::WalkExceeded);
}
let mut b = self.bindings.clone();