From b00e6949e62cad8762e3a79daec97bffbc530cf6 Mon Sep 17 00:00:00 2001 From: Akira Tsukamoto Date: Sat, 21 Mar 2020 07:01:58 +0000 Subject: [PATCH] jws: lws_gencrypto_jws_alg_to_definition needs sentinel Otherwise segfault when end of array reached. --- lib/tls/lws-gencrypto-common.c | 2 ++ 1 file changed, 2 insertions(+) mode change 100755 => 100644 lib/tls/lws-gencrypto-common.c diff --git a/lib/tls/lws-gencrypto-common.c b/lib/tls/lws-gencrypto-common.c old mode 100755 new mode 100644 index aaa7b74d8..917a5f12b --- a/lib/tls/lws-gencrypto-common.c +++ b/lib/tls/lws-gencrypto-common.c @@ -238,6 +238,8 @@ static const struct lws_jose_jwe_alg lws_gencrypto_jws_alg_map[] = { "PS512", NULL, 2048, 4096, 0 }, #endif + /* list terminator */ + { 0, 0, 0, 0, NULL, NULL, 0, 0, 0} }; /*