Bug 575024 JSObject::resizeDenseArrayElements comparison is always false due to limited range of data type

r=dvander

--HG--
extra : rebase_source : 2be13535bf494080eb098ab4c4f9008d7a6feb88
This commit is contained in:
timeless@mozdev.org 2010-06-28 13:22:52 +03:00
parent 261888bbb9
commit f0252e7cbf

View File

@ -337,7 +337,7 @@ JSObject::resizeDenseArrayElements(JSContext *cx, uint32 oldcap, uint32 newcap,
return JS_TRUE;
}
if (newcap > MAX_DSLOTS_LENGTH) {
if (newcap > MAX_DSLOTS_LENGTH32) {
js_ReportAllocationOverflow(cx);
return JS_FALSE;
}