Commit c2b3ed71 authored by Michael Smith's avatar Michael Smith

Fix overflow when base64 decoding invalid base64.

svn path=/icecast/trunk/icecast/; revision=6533
parent a66e69cb
......@@ -450,6 +450,7 @@ char *util_base64_decode(unsigned char *input)
vals[3] = base64decode[*input++];
if(vals[0] < 0 || vals[1] < 0 || vals[2] < -1 || vals[3] < -1) {
len -= 4;
continue;
}
......
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