summaryrefslogtreecommitdiff
path: root/src/g10lib.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-07-07 19:28:38 +0200
committerPeter Wu <peter@lekensteyn.nl>2015-07-07 19:33:35 +0200
commitb3fc17453bf586a99879a7bba03122a4f0b7aa6d (patch)
treeea40aec5783c5d1acddf6bf4c32bd4be049be4ea /src/g10lib.h
parenta9c15554de5dfb0f8565e8b50f40562f6ce4a816 (diff)
downloadlibgcrypt-b3fc17453bf586a99879a7bba03122a4f0b7aa6d.tar.gz
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. * cipher/mac-poly1305.c: If the caller requested to finish the hash function without a copy of the result, return immediately. -- Caught by UndefinedBehaviorSanitizer. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'src/g10lib.h')
0 files changed, 0 insertions, 0 deletions