CHERIoT-Platform / network-stack

5 stars 1 forks source link

Fix type confusion in the firewall pointer-based `remove`. #35

Closed hlef closed 1 month ago

hlef commented 1 month ago

size() returns a size in number of objects, however it is substracted a value in bytes in the pointer-based remove function. This results in various flavors of memory corruption.

Fix the function and ensure that it is covered by the tests.