Skip to content
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

20240626-EvictSessionFromCache-ticketNonce-data-leak #7687

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Jun 26, 2024

src/ssl_sess.c: in EvictSessionFromCache(), free session->ticketNonce.data if it was dynamically allocated. fixes memory leak via wolfSSL_Cleanup().

for history see 56d6087 and 1106e5f.

detected by wolfssl-multi-test.sh ... all-noasm-valgrind-unittest

tested with

LD_LIBRARY_PATH=./src/.libs saferun valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all --show-reachable=yes --leak-resolution=high --track-fds=yes --track-origins=yes --fullpath-after= --error-exitcode=10 ./tests/.libs/unit.test

also tested with wolfssl-multi-test.sh ... super-quick-check

….data if it was dynamically allocated. fixes memory leak via wolfSSL_Cleanup().
@JacobBarthelmeh JacobBarthelmeh merged commit c047e55 into wolfSSL:master Jun 27, 2024
119 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants