Skip to content

tor-cell: Consistent and secure conversion to u16

Emil Engler requested to merge emilengler/arti:safe_u16_conversion into main

This commit improves the overflow protection of one call to Vec::write_u16(), by replacing the cast conversion from self.sig.len() with a call to u16::try_from(), like it is already done in the rest of the accompanying function.

Merge request reports