Bug 575024 JSObject::resizeDenseArrayElements comparison is always false due to limited range of data type
r=dvander
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user