Skip to content

tor-bytes: avoid write_zeros truncation

Tobias Stoeckmann requested to merge stoeckmann/arti:bytes_arith into main

Use a saturating add while determining the new length. If it really ends up being usize::MAX, the resize will most likely panic. This is at least a more reliable end of processing than going on with a much smaller vector than expected.

Merge request reports