mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-03 08:01:40 +00:00
Before going into the loop we may as well make sure to reserve enough space for the entire buffer. Otherwise we could be allocating multiple times. This does not change the total allocated size. Though this does add a missing limit to the allocated size.