Skip to content

Commit bdc35c9

Browse files
author
Thies C. Arntzen
committed
clear current_execute_data on bailout as it would point into some freed area
on the stack.
1 parent a235002 commit bdc35c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ ZEND_API void _zend_bailout(char *filename, uint lineno)
549549
}
550550
CG(unclean_shutdown) = 1;
551551
CG(in_compilation) = EG(in_execution) = 0;
552+
EG(current_execute_data) = NULL;
552553
longjmp(EG(bailout), FAILURE);
553554
}
554555
END_EXTERN_C()

0 commit comments

Comments
 (0)