enlightenment/src/modules/lokker
Tom Hacohen acfdda6c7f E auth: improve clearing out passwords from memory.
Optimising compilers (like gcc/clang with -O1 or above) were optimising
out the memset(). Until link time optimisations are good enough, this
will prevent them from doing so. The best solution would be to use
memset_s() (c11), though it's not readily available yet. This is the
first step towards using memset_s() with a fallback for systems who
don't have it. A better solution, is to put it in Eina, to prevent LTO
completely. This will have to be done after the EFL release.
Even this is not entirely safe though, but at least it protects us from
some memory disclosure issues.

This doesn't solve the fact that we may store a copy of the password in
other places, like the input system. We need to address that too.

Thanks to Matthew Garrett for pointing this out or Twitter.
2015-04-21 10:19:48 +01:00
..
e_mod_main.c don't need to check desklock state on lokker init 2014-01-15 01:02:06 -05:00
e_mod_main.h remove E_Win+e_canvas, convert all internal wins to use elm_win 2014-11-20 15:26:21 -05:00
lokker.c E auth: improve clearing out passwords from memory. 2015-04-21 10:19:48 +01:00