Closed zakuArbor closed 2 years ago
Commit: zakuarbor/pam-duress@79b0d31
bad usage:
$ pam_test
Usage: app [username]
bad password:
zaku@zaku:~/Documents/pam-duress$ pam_test $USER
Credentials accepted.
Password:
Not Authenticated
duress password:
zaku@zaku:~/Documents/pam-duress$ pam_test $USER
Credentials accepted.
Password:
Hello World
Account is valid.
Authenticated
real password:
zaku@zaku:~/Documents/pam-duress$ pam_test $USER
Credentials accepted.
Password:
Account is valid.
Authenticated
duress-sign
:... cut ...
Password:
Confirm:
Password did not match. Aborting.
==2631==
==2631== HEAP SUMMARY:
==2631== in use at exit: 126 bytes in 2 blocks
==2631== total heap usage: 7 allocs, 5 frees, 10,286 bytes allocated
==2631==
==2631== LEAK SUMMARY:
==2631== definitely lost: 6 bytes in 1 blocks
to
zaku@zaku:~/.duress$ valgrind duress_sign ~/.duress/hello.sh
...cut...
Password:
Confirm:
Password did not match. Aborting.
==2719==
==2719== HEAP SUMMARY:
==2719== in use at exit: 120 bytes in 1 blocks
==2719== total heap usage: 7 allocs, 6 frees, 10,286 bytes allocated
==2719==
==2719== LEAK SUMMARY:
==2719== definitely lost: 0 bytes in 0 blocks
Thanks for the diligent work, write ups and explanation. Made the review very easy. My c experience is definitely weaker and I hadn't had time to audit for memory leaks so I greatly appreciate your work.
@zakuArbor Why did you revert shebang?
My bad, I wanted to keep PR #36 separate from this PR but I should have realized that would be a bad idea if #36 was merged before #37. I forgot to make my changes in another branch when updating the document so when I was working on #37 I removed it. @DusanLesan Good catch.
@nuvious would it be possible to reopen PR #36 and re-merge the changes? i.e. I reverted the change on this PR without considering #36 would be merged before #37. An error on my part.
Alternatively, someone can make a new PR and push the shellbang back to the documentation.
Alternatively, someone can make a new PR and push the shellbang back to the documentation.
Hey, just catching up to this thread and I'll see if I can open a PR today under #35
Summary: There are some memory leaks in the code that have been squashed and some additional checks are written to handle if
malloc
fails. Issue: #34 Test:Valgrind Results: