You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/phpfuzz/WorkSpace/flowfusion/php-src/ext/standard/array.c:1009:25: runtime error: member access within misaligned address 0x3534653331653939 for type 'const zend_object_handlers' (aka 'const struct _zend_object_handlers'), which requires 8 byte alignment
0x3534653331653939: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/standard/array.c:1009:25 in
get_ht_for_iap emits a deprecation and thereafter assumes the zval is still an object.
To solve this we'd need to fetch the properties and add protection to the hash table before emitting the deprecation; or detect clobbering. This fits in the broader issue of #20018, and given that this is caused by deprecated functionality I'm not even sure if we should attempt to fix this (urgently).
Activity
ndossche commentedon Oct 3, 2025
get_ht_for_iapemits a deprecation and thereafter assumes the zval is still an object.To solve this we'd need to fetch the properties and add protection to the hash table before emitting the deprecation; or detect clobbering. This fits in the broader issue of #20018, and given that this is caused by deprecated functionality I'm not even sure if we should attempt to fix this (urgently).
Cleaned up reproducer:
Fix phpGH-20042: SEGV in array.c when error handler clobbers IAP object
Fix phpGH-20042: SEGV in array.c when error handler clobbers IAP object
Defer user error handlers raised from user-code opcodes