Closed ljharb closed 8 months ago
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.
index
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.
bytes[i]
i
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]
, buti
is not a variable defined in the algorithm.