fromBase64Into and fromHexInto: infinite loop
ljharb opened this issue · 0 comments
ljharb commented
https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.fromhexinto step 14 and https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.frombase64into step 22 are a loop, but it does not modify index in it, so they will loop forever.
Additionally, step 14.a of fromHexInto and step 22.a of fromBase64Into uses bytes[i], but i is not a variable defined in the algorithm.