mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
More bustage fix, sigh
This commit is contained in:
parent
f0d10aeadd
commit
ace03add6c
@ -2123,7 +2123,7 @@ array_sort(JSContext *cx, uintN argc, jsval *vp)
|
||||
* malloc'd vector.
|
||||
*/
|
||||
#if JS_BITS_PER_WORD == 32
|
||||
if (size_t(len) > SIZE_MAX / (2 * sizeof(jsval))) {
|
||||
if (size_t(len) > size_t(-1) / (2 * sizeof(jsval))) {
|
||||
js_ReportAllocationOverflow(cx);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user