[gnutls-devel] libtasn1 | Use amended version of gnulib's hash_pjw_bare() (!27)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Jul 22 14:02:41 CEST 2019

Tim Rühsen commented on a discussion on lib/parser_aux.c: https://gitlab.com/gnutls/libtasn1/merge_requests/27#note_194335290

>  char _asn1_identifierMissing[ASN1_MAX_NAME_SIZE + 1];	/* identifier name not found */
> +/* Return a hash of the N bytes of X using the method described by
> +   Bruno Haible in https://www.haible.de/bruno/hashfunc.html.
> +   Note that while many hash functions reduce their result via modulo
> +   to a 0..table_size-1 range, this function does not do that.
> +
> +   This implementation has been changed from size_t -> unsigned int. */
> +
> +#ifdef __clang__
> +__attribute__((no_sanitize("integer")))
> +#endif

Good catch/question. It is included by gl_INIT/gl_COMMON used in configure.ac and appears in config.h. There are several other attribute definitions in config.h that we can make use of.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/merge_requests/27#note_194335290
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/20190722/45dee4e7/attachment-0001.html>

More information about the Gnutls-devel mailing list