We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26aa54e + 501f1a4 commit 1d50625Copy full SHA for 1d50625
1 file changed
Zend/zend_list.c
@@ -37,6 +37,8 @@ ZEND_API zval* ZEND_FASTCALL zend_list_insert(void *ptr, int type)
37
index = zend_hash_next_free_element(&EG(regular_list));
38
if (index == 0) {
39
index = 1;
40
+ } else if (index == INT_MAX) {
41
+ zend_error_noreturn(E_ERROR, "Resource ID space overflow");
42
}
43
ZVAL_NEW_RES(&zv, index, ptr, type);
44
return zend_hash_index_add_new(&EG(regular_list), index, &zv);
0 commit comments