Page MenuHomeFreeBSD

add zfree to zero allocation before free
ClosedPublic

Authored by mmacy on Dec 13 2019, 12:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 10:17 PM
Unknown Object (File)
Dec 20 2023, 2:52 AM
Unknown Object (File)
Jul 8 2023, 1:13 AM
Unknown Object (File)
Jul 8 2023, 1:11 AM
Unknown Object (File)
Jul 8 2023, 1:11 AM
Unknown Object (File)
Jul 8 2023, 1:02 AM
Unknown Object (File)
Jun 12 2023, 4:08 AM
Unknown Object (File)
May 18 2023, 9:53 PM
Subscribers

Details

Summary

Key and cookie management typically wants to avoid information leaks by explicitly zeroing before free. This routine simplifies that by permitting consumers to do so without carrying the size around.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Can you upload a diff with more context? -U9999 or arc diff, whatever.

This revision is now accepted and ready to land.Dec 13 2019, 2:27 AM

Forgot to mention yesterday: it should be added to the malloc.9 manpage as well.

This revision was automatically updated to reflect the committed changes.