Skip to content

mbuf: Add debugging helpers for allocation

Samuel Thibault requested to merge sthibaul/libslirp:valgrind into master

This adds a few helpers for debugging mbuf allocations when running in debugging mode (lsan, valgrind, etc.)

  • We do not want to cache allocations.
  • We want to update the mbuf allocation owner on function call for more precise leak reporting.
  • We always want to check that we have the expected room before m_data.

Based on Jeremy Marchand's fuzzing work.

Signed-off-by: jeremy marchand jeremy.marchand@etu.u-bordeaux.fr Signed-off-by: Samuel Thibault samuel.thibault@ens-lyon.org

Merge request reports