aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-08-08 12:01:23 +0200
committerRaimo Niskanen <[email protected]>2016-08-08 12:01:23 +0200
commite23bc1c5705c07735cb87183f6e7409b40613d74 (patch)
treef5c50ffdca8b380763584444e2e36568cb0f1312
parente43e82802735f2fd0d6d67308e7602c37ac70898 (diff)
parent4763141dcb61464fdc3ac11273d0a21874670bb5 (diff)
downloadotp-e23bc1c5705c07735cb87183f6e7409b40613d74.tar.gz
otp-e23bc1c5705c07735cb87183f6e7409b40613d74.tar.bz2
otp-e23bc1c5705c07735cb87183f6e7409b40613d74.zip
Merge branch 'duncaen/crypto/fix-algo_cipher-array-size/PR-1140/OTP-13789' into maint
* duncaen/crypto/fix-algo_cipher-array-size/PR-1140/OTP-13789: Fix segfault in crypto by increasing algo_cipher array
-rw-r--r--lib/crypto/c_src/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 7183c395ae..d0044fe723 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -749,7 +749,7 @@ static ERL_NIF_TERM algo_hash[8]; /* increase when extending the list */
static int algo_pubkey_cnt;
static ERL_NIF_TERM algo_pubkey[7]; /* increase when extending the list */
static int algo_cipher_cnt;
-static ERL_NIF_TERM algo_cipher[20]; /* increase when extending the list */
+static ERL_NIF_TERM algo_cipher[21]; /* increase when extending the list */
static void init_algorithms_types(ErlNifEnv* env)
{