Skip to content

Commit

Permalink
fix: off-by-1 error in proof verify (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinui0 authored Sep 19, 2023
1 parent e768f52 commit ea30771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tlsn/tlsn-core/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl SubstringsProof {
Direction::Received => header.recv_len(),
};

if max >= transcript_len as usize {
if max > transcript_len as usize {
return Err(SubstringsProofError::RangeOutOfBounds(id, max));
}

Expand Down

0 comments on commit ea30771

Please sign in to comment.