|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-08 16:21 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2016-08-08 16:21 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 21:00:01 2025 UTC |
Description: ------------ VLD 0.12.0 may crash when parsing break/continue statement on PHP 5.4 I found out vld_find_brk_cont() causes this problem (memory access violation). I fixed it by this way: srm_oparray.c, line 664, "op.op2.constant" -> "op.op2.zv->value.lval" It works. But I do not ensure this is the right way. Test script: --------------- while(1) { break; } Expected result: ---------------- 3 0 > > JMPZ 1, ->3 4 1 > > BRK 1, ->3 5 2* JMP ->0 6 3 > > RETURN 1 Actual result: -------------- 3 0 > > JMPZ 1, ->3 4 1 > > BRK 1, [[[ a random value ]]] 5 2* JMP ->0 6 3 > > RETURN 1 or crash directly