@@ -185,7 +185,7 @@ static ZEND_NORETURN void zend_fiber_trampoline(transfer_t transfer)
185
185
zend_fiber_context * context = transfer .data ;
186
186
187
187
#ifdef __SANITIZE_ADDRESS__
188
- __sanitizer_finish_switch_fiber (NULL , & context -> stack .bottom , & context -> stack .capacity );
188
+ __sanitizer_finish_switch_fiber (NULL , & context -> stack .prior_pointer , & context -> stack .prior_size );
189
189
#endif
190
190
191
191
context -> caller = transfer .context ;
@@ -195,7 +195,7 @@ static ZEND_NORETURN void zend_fiber_trampoline(transfer_t transfer)
195
195
context -> self = NULL ;
196
196
197
197
#ifdef __SANITIZE_ADDRESS__
198
- __sanitizer_start_switch_fiber (NULL , context -> stack .bottom , context -> stack .capacity );
198
+ __sanitizer_start_switch_fiber (NULL , context -> stack .prior_pointer , context -> stack .prior_size );
199
199
#endif
200
200
201
201
jump_fcontext (context -> caller , NULL );
@@ -242,7 +242,7 @@ ZEND_API void zend_fiber_switch_context(zend_fiber_context *to)
242
242
transfer_t transfer = jump_fcontext (to -> self , to );
243
243
244
244
#ifdef __SANITIZE_ADDRESS__
245
- __sanitizer_finish_switch_fiber (fake_stack , & to -> stack .bottom , & to -> stack .capacity );
245
+ __sanitizer_finish_switch_fiber (fake_stack , & to -> stack .prior_pointer , & to -> stack .prior_size );
246
246
#endif
247
247
248
248
to -> self = transfer .context ;
@@ -254,13 +254,13 @@ ZEND_API void zend_fiber_suspend_context(zend_fiber_context *current)
254
254
255
255
#ifdef __SANITIZE_ADDRESS__
256
256
void * fake_stack ;
257
- __sanitizer_start_switch_fiber (& fake_stack , current -> stack .bottom , current -> stack .capacity );
257
+ __sanitizer_start_switch_fiber (& fake_stack , current -> stack .prior_pointer , current -> stack .prior_size );
258
258
#endif
259
259
260
260
transfer_t transfer = jump_fcontext (current -> caller , NULL );
261
261
262
262
#ifdef __SANITIZE_ADDRESS__
263
- __sanitizer_finish_switch_fiber (fake_stack , & current -> stack .bottom , & current -> stack .capacity );
263
+ __sanitizer_finish_switch_fiber (fake_stack , & current -> stack .prior_pointer , & current -> stack .prior_size );
264
264
#endif
265
265
266
266
current -> caller = transfer .context ;
0 commit comments