1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
This commit is contained in:
Rasmus Lerdorf
2008-01-30 08:52:17 +00:00
parent 1a41611372
commit 71efa394a6
+1 -1
View File
@@ -595,7 +595,7 @@ PHPAPI char *xml_utf8_decode(const XML_Char *s, int len, int *newlen, const XML_
s += 3;
pos -= 3;
} else if (c >= 0xc0) { /* two bytes encoded, 11 bits */
if(pos-3 >= 0) {
if(pos-2 >= 0) {
c = ((s[0]&63)<<6) | (s[1]&63);
} else {
c = '?';