roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.03k stars 205 forks source link

Implement memory guards in slab pool #582

Closed gavv closed 9 months ago

gavv commented 9 months ago

core::Pool implements slab pool. (Actual implementation is in core::PoolImpl).

It already has one memory safety measure: poisoning. It fills memory with specific pattern before returning it to user and after returning it to pool.

It would be nice to add two more safety checks:

nolan-veed commented 9 months ago

I'll work on this over the next few days and create 2 pull requests for it.

gavv commented 9 months ago

You're welcome, thanks!

gavv commented 9 months ago

PRs merged.