mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
[core] fix base64 decoded size when encoded string contains padding =
This commit is contained in:
@@ -1076,7 +1076,7 @@ SWITCH_DECLARE(switch_size_t) switch_b64_decode(const char *in, char *out, switc
|
||||
l64[(int) switch_b64_table[i]] = (char) i;
|
||||
}
|
||||
|
||||
for (ip = in; ip && *ip; ip++) {
|
||||
for (ip = in; ip && *ip && (*ip != '='); ip++) {
|
||||
c = l64[(int) *ip];
|
||||
if (c == -1) {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user