quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 991116d47edc8cd3a71d658f57104c92d03baeee
parent e50e71468c0cba71fb853e85c98c092f5673d127
Author: Iván Ávalos <avalos@disroot.org>
Date:   Thu, 15 May 2025 15:48:11 +0200

fix unchecked malloc

bug 0009950

Diffstat:
Mtart_module.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/tart_module.c b/tart_module.c @@ -508,6 +508,9 @@ static JSValue js_talercrypto_hash_argon2id(JSContext *ctx, JSValue this_val, } hash = malloc(hash_len); + if (NULL == hash) { + goto exception; + } if (crypto_pwhash(hash, hash_len,