404176a5ee
A fixed buffer of 12 bytes was unsafely copied from the bytes of a string - if the string was shorter than that, memory from outside would leak into the packet. Replace the unsafe copy by a safe loop. Also add a panic if an attempt is made to use a command string longer than 12 bytes. |
||
---|---|---|
.. | ||
address.rs | ||
constants.rs | ||
encodable.rs | ||
listener.rs | ||
message.rs | ||
message_blockdata.rs | ||
message_network.rs | ||
mod.rs | ||
serialize.rs | ||
socket.rs |