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:
parent
a66e69cb1c
commit
c2b3ed7146
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user