summaryrefslogtreecommitdiff
path: root/cipher/cipher-poly1305.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-03-23 03:45:20 +0100
committerWerner Koch <wk@gnupg.org>2016-03-23 11:02:11 +0100
commitd3d7bdf8215275b3b20690dfde3f43dbe25b6f85 (patch)
tree079a979c7cd0e1dd7f3c1562f2ab9c12e9e403e1 /cipher/cipher-poly1305.c
parentd328095dd4de83b839d9d8c4bdbeec0956971016 (diff)
downloadlibgcrypt-d3d7bdf8215275b3b20690dfde3f43dbe25b6f85.tar.gz
Fix buffer overrun in gettag for GCM
* cipher/cipher-gcm.c: copy a fixed length instead of the user-supplied number. -- The outbuflen is used to check the minimum size, the real tag is always of fixed length. Signed-off-by: Peter Wu <peter@lekensteyn.nl> Actually this is not a buffer overrun because we copy not more than has been allocated for OUTBUF. However a too long OUTBUFLEN accesses data outside of the source buffer. -wk
Diffstat (limited to 'cipher/cipher-poly1305.c')
0 files changed, 0 insertions, 0 deletions