[gnutls-devel] GnuTLS | New CI runner with clang combined ubsan+asan (!1151)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Jan 23 19:10:43 CET 2020




Tim Rühsen commented on a discussion on lib/hello_ext.c: https://gitlab.com/gnutls/gnutls/merge_requests/1151#note_276119131

>  	int ret;
>  	hello_ext_ctx_st ctx;
>  
> -	msg &= GNUTLS_EXT_FLAG_SET_ONLY_FLAGS_MASK;
> +	msg &= (gnutls_ext_flags_t) GNUTLS_EXT_FLAG_SET_ONLY_FLAGS_MASK;

Ok, but the mask must be guaranteed unsigned then (by a cast) or we run into another sanitizer issue (implicitly converting negative numbers into unsigned).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1151#note_276119131
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/20200123/b506de9e/attachment-0001.html>


More information about the Gnutls-devel mailing list