Incorrect Base64 decoder in utils (missing '
*Base64 utils. Encode is ok, but decode? '=' is missed, so, VLC, that contains correct base64 encoder, produces '=' at the end of the string. We need to pacth that case in decoder:
char *util_base64_decode(unsigned char *input) { int len = strlen(input); char out = malloc(len3/4 + 5); char *result = out; signed char vals[4];
while(len > 0) {
if(len < 4 && *input != '=')
{
free(result);
return NULL; /* Invalid Base64 data */
} else if (*input == '=') break;