mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 15:41:55 +00:00
fix bound check: uint32_t -> int
This commit is contained in:
parent
cc888029c5
commit
d2c171a83f
@ -67,7 +67,7 @@ void v8js_v8_init(TSRMLS_D) /* {{{ */
|
|||||||
if (v8js_process_globals.v8_flags) {
|
if (v8js_process_globals.v8_flags) {
|
||||||
size_t flags_len = strlen(v8js_process_globals.v8_flags);
|
size_t flags_len = strlen(v8js_process_globals.v8_flags);
|
||||||
|
|
||||||
if (flags_len > std::numeric_limits<uint32_t>::max()) {
|
if (flags_len > std::numeric_limits<int>::max()) {
|
||||||
zend_throw_exception(php_ce_v8js_exception,
|
zend_throw_exception(php_ce_v8js_exception,
|
||||||
"Length of V8 flags exceeds maximum supported length", 0);
|
"Length of V8 flags exceeds maximum supported length", 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user