From d6477717911f71c04856614648ce8086583fc981 Mon Sep 17 00:00:00 2001 From: Harunobu Ishii Date: Fri, 24 May 2024 14:35:17 -0400 Subject: [PATCH] trying sanitizer --- lib/client/protocols/arrays/share.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/client/protocols/arrays/share.js b/lib/client/protocols/arrays/share.js index 81a817140..f89b6f838 100644 --- a/lib/client/protocols/arrays/share.js +++ b/lib/client/protocols/arrays/share.js @@ -207,6 +207,9 @@ class ShareArray { return Promise.resolve([]); } else if (secrets != null && Array.isArray(secrets)) { const promised_array = []; + let sender_list = [sender] + const parameters = [receivers_list, sender_list, threshold, Zp, share_id]; + [receivers_list, sender_list, threshold, Zp, share_id] = util.sanitize_array_params.bind(null, jiff).apply(null, parameters); for (let j = 0; j < secrets.length; j++) { promised_array.push(this.share_array_single_sender(jiff, secrets[j], threshold, receivers_list, sender, Zp, share_id + ':' + j)); }