Commit 734ef70e authored by Tim Rühsen's avatar Tim Rühsen

Fix overflow introduced in ce0d4532

parent ce0d4532
......@@ -161,7 +161,9 @@ int punycode_decode(
if (!basic(input[j])) return punycode_bad_input;
output[out++] = input[j];
}
b += delim(input[b]);
if (input_length)
b += delim(input[b]);
for (j = b; j < input_length; ++j)
if (!basic(input[j])) return punycode_bad_input;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment