[gnutls-devel] GnuTLS | Use matching allocator/deallocator (!2058)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Fri Jan 23 18:03:11 CET 2026
Alexander Sosedkin started a new discussion on libdane/dane.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2058#note_3030969405
> *dane_data_len =
> gnutls_calloc(q->data_entries + 1, sizeof(**dane_data_len));
> if (*dane_data_len == NULL) {
> free(*dane_data);
Here's at least one mismatched free the analyzer didn't catch. `-Wanalyzer-too-complex` suggests it cuts the analysis short, and I get that the complexity could be real high when the inter-functional analysis meets a huge callgraph, but the mismatch here is entirely within one function =/ If only it still checked the smaller subtrees, or at least the leaves...
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2058#note_3030969405
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260123/083d0f40/attachment.html>
More information about the Gnutls-devel
mailing list