raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3405362b1d3160b2714cf17561a8d48e5405f7e8

commit 3405362b1d3160b2714cf17561a8d48e5405f7e8
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Nov 3 16:52:47 2014 +0900

    e_auth - null out compilert memset opts like lokker
---
 src/bin/e_auth.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/e_auth.c b/src/bin/e_auth.c
index 85f7ffe..7bda8ae 100644
--- a/src/bin/e_auth.c
+++ b/src/bin/e_auth.c
@@ -174,6 +174,9 @@ e_auth_begin(char *passwd)
    pam_end(da.pam.handle, pamerr);
    /* security - null out passwd string once we are done with it */
    memset(da.passwd, 0, sizeof(da.passwd));
+   /* break compiler optimization */
+   if (da.passwd[0] || da.passwd[3])
+     fprintf(stderr, "ACK!\n");
    if (pamerr == PAM_SUCCESS)
      {
         free(current_user);

-- 


Reply via email to