diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-24 03:27:13 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 18:43:53 +0900 |
commit | fc989306c06bf842b2f8b84de15ab5526727d5da (patch) | |
tree | 60232e29af0580f63778db074c5629243805771c /hash.c | |
parent | 67700610044b2bb49dcef4ed4c6bd4878bf7a49f (diff) | |
download | ruby-fc989306c06bf842b2f8b84de15ab5526727d5da.tar.gz |
ext/openssl: avoid SEGV on Cipher.new("ChaCha20-Poly1305")
A temporary workaround.
EVP_CipherInit_ex() allows to specify NULL to key and/or iv, however
when we use ChaCha20-Poly1305 and set only key (this case), it does
memcpy(x, NULL, y) and this causes a segmentation fault.
Diffstat (limited to 'hash.c')
0 files changed, 0 insertions, 0 deletions