[gnutls-devel] GnuTLS | Detect malloc failure. (!960)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Mar 27 17:22:07 CET 2019




@nmav I wonder why our CI scan-build didn't find this obvious issue. And I believe that is because we don't use function attributes 'malloc' (and '__alloc_size' for clang).

@mia2019 Would you like to investigate here ?
- make a define for the gcc attribute 'malloc'
- add the attribute (macro) to gnutls allocation functions
- push the branch to see 'static-analyzers.Fedora.x86_64' fail (at least I hope so)
- if it fails, click on the failed job, then on 'browse'... you'll find the issues listed there
- open new issue(s), make up a fix, push MR, ...

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/960#note_154767047
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/20190327/f195c890/attachment.html>


More information about the Gnutls-devel mailing list