-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit 6eb3fae
Fix use-of-uninitialized-value in zend_get_arg_offset_by_name()
Don't access fbc->op_array.refcount on internal function. Don't attempt to cache
ZEND_ACC_USER_ARG_INFO at all, which is only used in
zend_get_closure_invoke_method(). This may reuse arg_info from a temporary
closure, and hence caching would also be unsafe.
Also avoid populating the cache slot for variadic parameters, where the
ZEND_ACC_USER_ARG_INFO is set for the same reason.
Closes GH-19856 1 parent 75217c1 commit 6eb3fae
1 file changed
+6
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5072 | 5072 |
| |
5073 | 5073 |
| |
5074 | 5074 |
| |
5075 | - | ||
5075 | + | ||
5076 | 5076 |
| |
5077 | - | ||
5077 | + | ||
5078 | 5078 |
| |
5079 | 5079 |
| |
5080 | 5080 |
| |
| |||
5094 | 5094 |
| |
5095 | 5095 |
| |
5096 | 5096 |
| |
5097 | - | ||
5097 | + | ||
5098 | + | ||
5099 | + | ||
5100 | + | ||
5098 | 5101 |
| |
5099 | 5102 |
| |
5100 | 5103 |
| |
|
0 commit comments