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)
Fri, Jan 17, 10:41 AM
Unknown Object (File)
Fri, Jan 17, 9:23 AM
Unknown Object (File)
Tue, Jan 14, 8:49 PM
Unknown Object (File)
Dec 10 2024, 8:03 AM
Unknown Object (File)
Nov 13 2024, 6:36 AM
Unknown Object (File)
Nov 13 2024, 6:26 AM
Unknown Object (File)
Sep 24 2024, 3:40 AM
Unknown Object (File)
Sep 20 2024, 6:14 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.