From: Chris Duncan Date: Mon, 10 Aug 2026 05:15:21 +0000 (-0700) Subject: Fix off-by-one error. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=59aad3cdf5ed607a16ccbb3de6cdcc185537bae7;p=libnemo.git Fix off-by-one error. --- diff --git a/src/lib/vault/vault-worker.ts b/src/lib/vault/vault-worker.ts index 5999caa..e2faa78 100644 --- a/src/lib/vault/vault-worker.ts +++ b/src/lib/vault/vault-worker.ts @@ -198,7 +198,7 @@ function derive (index?: Uint32Array): Promise MAX_DERIVATIONS) { + if (index.length > MAX_DERIVATIONS + 1) { throw new VaultError('Maximum 1000 accounts per call') } const promises = []