Bug 565612 unreachable branch in js_InflateUTF8StringToBuffer. r=jorendorff

--HG--
extra : rebase_source : 64e41e13787b9a9c3cfb4faf987c6f6902293407
This commit is contained in:
timeless@mozdev.org 2010-05-23 15:40:59 -07:00
parent 59574ab672
commit 645d4df35e

View File

@ -3713,8 +3713,6 @@ js_InflateUTF8StringToBuffer(JSContext *cx, const char *src, size_t srclen,
}
return JS_FALSE;
}
if (dstlen < 2)
goto bufferTooSmall;
if (dst) {
*dst++ = (jschar)((v >> 10) + 0xD800);
v = (jschar)((v & 0x3FF) + 0xDC00);