ethereumjs / merkle-patricia-tree

Project is in active development and has been moved to the EthereumJS VM monorepo.

Home Page:https://github.com/ethereumjs/ethereumjs-monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nibbles.js matchingNibbleLength potential error

Lion17 opened this issue · comments

while (nib1[i] === nib2[i] && nib1.length > i) {

There is a potential error.
The length of nib2 is not checked.

I'm sorry. On JS this will work correctly.