HomePhabricator

e auth - use our memclear and fill it out with modern zeroing methods

Authored by raster on Feb 18 2020, 2:25 AM.

Description

e auth - use our memclear and fill it out with modern zeroing methods

so memset_s still doesn't get detected (add a check anyway), but there
are other alternatives, so detect and use them if found
(explicit_bzero, explicit_memset) in addition to the generally
"practically works" memset ptr method we had and.. just to be extra
safe add an asm memory barrier to this fallback. also.. mlock the
passwd memory in lokker (if it doesn't work - don't worry - there is
nothing we can do, so we did our best) to avoid this memory gettign
swapped etc.

Details

Committed
rasterFeb 18 2020, 2:29 AM
Parents
rE276eb5b09119: pager - remove unsued vars from segv fix
Branches
Unknown
Tags
Unknown
Tasks
T8151: RFC: Text interfaces design proposal
Restricted Maniphest Task