We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9277713 commit 8636401Copy full SHA for 8636401
Zend/zend_compile.c
@@ -62,7 +62,10 @@ typedef struct _zend_loop_var {
62
63
static inline uint32_t zend_alloc_cache_slots(unsigned count) {
64
if (count == 0) {
65
- return (uint32_t) -1;
+ /* Even if no cache slots are desired, the VM handler may still want to acquire
66
+ * CACHE_ADDR() unconditionally. Returning zero makes sure that the address
67
+ * calculation is still legal and ubsan does not complain. */
68
+ return 0;
69
}
70
71
zend_op_array *op_array = CG(active_op_array);
0 commit comments