mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-02-11 07:57:37 +00:00
The error in the code was that the `vsizeof(n)` was called with a dummy zeroed variable, instead of the proper size of the buffer. This resulted in an assertion failure when the prefix length needs to be stored in more than 1 byte.