1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00

Fixed missing run_time_cache for preloaded arena allocated internal functions

This effectively affected all preloaded enums, leading them to possibly share a run_time_cache__ptr slot with unrelated functions. (Given that these were not set again.)
This bugfix is not accompanied by a test, due to how hard to trigger it was and getting a crash also depends a lot on the precise alignment of whether a cache entry accidentally overlapping has been used etc.
This commit is contained in:
Bob Weinand
2022-10-22 21:31:51 +00:00
parent cb3d5a772d
commit 5e9654be03
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ PHP NEWS
evaluation with extra named params). (Arnaud)
. Fixed bug GH-9801 (Generator crashes when memory limit is exceeded during
initialization). (Arnaud)
. Fixed a bug with preloaded enums possibly segfaulting. (Bob)
- MySQLnd:
. Fixed potential heap corruption due to alignment mismatch. (cmb)
+1
View File
@@ -723,6 +723,7 @@ static void zend_persist_class_method(zval *zv, zend_class_entry *ce)
}
}
}
ZEND_MAP_PTR_NEW(op_array->run_time_cache);
}
}
return;