[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-237-g46c0726

Werner Koch wk at gnupg.org
Mon Jul 27 07:45:25 CEST 2015


On Sun, 26 Jul 2015 16:00, cvs at cvs.gnupg.org said:

> commit 46c072669eb81ed610cc5b3c0dc0c75a143afbb4

>     Fix undefined behavior wrt memcpy
>     
>     * cipher/cipher-gcm.c: Do not copy zero bytes from an empty buffer. Let
>     the function continue to add padding as needed though.

I think it is a bit surprising that buf_cpy does not behave similar to
memcpy and requires the caller to check that LEN is greater than zero.
Would it be a noticeable loss of speed if buf_cpy would do the test
instead of the caller?


Shalom-Salam,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gcrypt-devel mailing list