mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
fix a base64 parsing problem in v-cards, r=sspitzer, sr=dveditz, 339740
This commit is contained in:
parent
c4c823f375
commit
a38acad4f0
@ -934,7 +934,7 @@ static char * lexGetDataFromBase64()
|
||||
b = 62;
|
||||
else if (c == '/')
|
||||
b = 63;
|
||||
else if (c == '=') {
|
||||
else if (c == '=' && (quadIx == 2 || quadIx == 3)) {
|
||||
b = 0;
|
||||
pad++;
|
||||
} else if ((c == ' ') || (c == '\t')) {
|
||||
@ -989,6 +989,7 @@ static char * lexGetDataFromBase64()
|
||||
}
|
||||
trip = 0;
|
||||
quadIx = 0;
|
||||
pad = 0;
|
||||
}
|
||||
}
|
||||
} /* while */
|
||||
|
Loading…
Reference in New Issue
Block a user