Re: GnuTLS | Use matching allocator/deallocator (!2058)

Read-only notification of GnuTLS library development activities <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.devel
Message-ID <[email protected]>


Alexander Sosedkin started a new discussion on libdane/dane.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2058#note_3030966929

 >  	*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_3030966929
You're receiving this email because of your account on gitlab.com.

_______________________________________________
Gnutls-devel mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.