Limited Deserialize isn't limiting anything (#10952)
* Add failing test * Use deserialize_from to enable limit
This commit is contained in:
@ -102,7 +102,7 @@ where
|
||||
{
|
||||
bincode::config()
|
||||
.limit(PACKET_DATA_SIZE as u64)
|
||||
.deserialize(data)
|
||||
.deserialize_from(data)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Reference in New Issue
Block a user