Skip to content

Commit

Permalink
make payload data limit sharp
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Schoolderman <[email protected]>
  • Loading branch information
tweedegolf-marc authored and marlonbaeten committed Jul 22, 2024
1 parent 50b6dff commit fc5db84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsp/src/cesr/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ fn checked_encode_variable_data(
payload: &[u8],
stream: &mut impl for<'a> Extend<&'a u8>,
) -> Result<(), EncodeError> {
const DATA_LIMIT: usize = 50000000;
const DATA_LIMIT: usize = 3 * (1 << 24);

if payload.len() >= DATA_LIMIT {
return Err(EncodeError::PayloadTooLarge);
Expand Down

0 comments on commit fc5db84

Please sign in to comment.