svn commit: r300773 - in head/sys: crypto crypto/aesni crypto/sha2 crypto/siphash kern sys

Glen Barber gjb at FreeBSD.org
Thu May 26 20:19:59 UTC 2016


On Thu, May 26, 2016 at 07:29:29PM +0000, Conrad E. Meyer wrote:
> Author: cem
> Date: Thu May 26 19:29:29 2016
> New Revision: 300773
> URL: https://svnweb.freebsd.org/changeset/base/300773
> 
> Log:
>   crypto routines: Hint minimum buffer sizes to the compiler
>   
>   Use the C99 'static' keyword to hint to the compiler IVs and output digest
>   sizes.  The keyword informs the compiler of the minimum valid size for a given
>   array.  Obviously not every pointer can be validated (i.e., the compiler can
>   produce false negative but not false positive reports).
>   
>   No functional change.  No ABI change.
>   
> 

This change breaks -CURRENT.

--- lib/libmd__L ---
md5hl.c:48:10: warning: implicit declaration of function '_libmd_MD5FileChunk' is invalid in C99
[-Wimplicit-function-declaration]
        return (MD5FileChunk(filename, buf, 0, 0));
                ^
/usr/src/lib/libmd/md5.h:32:22: note: expanded from macro 'MD5FileChunk'
#define MD5FileChunk    _libmd_MD5FileChunk
                        ^

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160526/900b7ea0/attachment.sig>


More information about the svn-src-all mailing list