-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Free Call for duress_hash in is_valid_duress_file #34
Comments
Confirmed using asan:
To replicate:
|
Using valgrind instead:
With fix implemented:
Seems like there are more memory leaks. |
zakuArbor
added a commit
to zakuArbor/pam-duress
that referenced
this issue
Jun 24, 2022
Signed-off-by: Ju Hong Kim <nabimoon1234@gmail.com>
Merged
zakuArbor
added a commit
to zakuArbor/pam-duress
that referenced
this issue
Jun 24, 2022
Signed-off-by: Ju Hong Kim <nabimoon1234@gmail.com>
zakuArbor
added a commit
to zakuArbor/pam-duress
that referenced
this issue
Jun 24, 2022
…eeded nested else Signed-off-by: Ju Hong Kim <nabimoon1234@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pam-duress/src/duress.c
Line 141 in 04e607f
I was skimming the code and noticed you forgot to free
duress_hash
in the functionis_valid_duress_file
sincesha_256_sum
allocates memory in the heap, it should be freed before calling returnThe text was updated successfully, but these errors were encountered: