Fix crash on unicode "zero width non-joiner" sequence. b=217903 r+sr=dbaron

This commit is contained in:
mats.palmgren@bredband.net 2007-06-28 13:02:57 -07:00
parent 88ce7bfec8
commit 26e2b943da

View File

@ -357,6 +357,7 @@ nsresult ArabicShaping(const PRUnichar* aString, PRUint32 aLen,
*lDest++ = *lSrc++;
*aBufLen = lDest - aBuf;
NS_ASSERTION(*aBufLen <= aLen, "ArabicShaping() likely did a buffer overflow!");
if (aOutputLogical) {
ReverseString(aBuf, *aBufLen);