NetSys / NetBricks

NetBricks: A new network function framework based on Rust.
ISC License
464 stars 75 forks source link

reordered_buffer: fix panic during data overlap #57

Closed shwang closed 7 years ago

shwang commented 7 years ago

let remaining = data.len() - offset causes an underflow panic in all cases of data overlap except the case when data.len() == offset.