1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix overflow when base64 decoding invalid base64.

svn path=/icecast/trunk/icecast/; revision=6533
This commit is contained in:
Michael Smith 2004-04-19 02:55:56 +00:00
parent a66e69cb1c
commit c2b3ed7146

View File

@ -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;
}