See:
Subject: [HACKERS] bugs with certain Asian multibyte charsets
From: Tatsuo Ishii <
[email protected]>
To:
[email protected]
Date: Sat, 24 Dec 2005 18:25:33 +0900 (JST)
for more details.
{
from++;
*to = *from++ << 8;
- *to |= 0x3f & *from++;
+ *to |= 0x7f & *from++;
len -= 3;
}
else if ((*from & 0x80) && len >= 2)
if (*from == SS2 && len >= 3)
{
from++;
- *to = 0x3f00 & (*from++ << 8);
+ *to = 0x7f00 & (*from++ << 8);
*to = *from++;
len -= 3;
}
{
from++;
*to = *from++ << 8;
- *to |= 0x3f & *from++;
+ *to |= 0x7f & *from++;
len -= 3;
}
else if ((*from & 0x80) && len >= 2)
{
from++;
*to = *from++ << 8;
- *to |= 0x3f & *from++;
+ *to |= 0x7f & *from++;
len -= 3;
}
else if ((*from & 0x80) && len >= 2)