Skip to content

Commit

Permalink
trying sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed May 24, 2024
1 parent d16db9f commit d647771
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/client/protocols/arrays/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check warning on line 214 in lib/client/protocols/arrays/share.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/protocols/arrays/share.js#L214

Function Call Object Injection Sink
}
Expand Down

0 comments on commit d647771

Please sign in to comment.