Fix buffer overflow vulnerability in spa_base64_to_bits() function.