[gnutls-devel] GnuTLS | fix possible memory leakage (!1714)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Sat Feb 25 02:25:52 CET 2023
xuraoqing commented on a discussion on src/serv.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1714#note_1292203627
> return GNUTLS_E_DB_ERROR;
> cache_db_alloc = cache_db_alloc * 2 + 1;
> - cache_db = realloc(cache_db,
> - cache_db_alloc * sizeof(CACHE));
> - if (!cache_db)
> + ptr = realloc(cache_db,
I initially planned to use xrealloc as before, but cache_db may already have session data stored, and the user may need to do something else before aborting.
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1714#note_1292203627
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel