mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add test for GH-18113
Fixed in https://github.com/dstogov/ir/pull/110 and merged via b932c267.
Closes GH-18113.
This commit is contained in:
2
NEWS
2
NEWS
@@ -61,6 +61,8 @@ PHP NEWS
|
||||
. Fixed bug GH-17966 (Symfony JIT 1205 assertion failure). (nielsdos)
|
||||
. Fixed bug GH-18037 (SEGV Zend/zend_execute.c). (nielsdos)
|
||||
. Fixed bug GH-18050 (IN_ARRAY optimization in DFA pass is broken). (ilutov)
|
||||
. Fixed bug GH-18113 (stack-buffer-overflow ext/opcache/jit/ir/ir_sccp.c).
|
||||
(nielsdos)
|
||||
|
||||
- Standard:
|
||||
. Fix memory leaks in array_any() / array_all(). (nielsdos)
|
||||
|
||||
47
ext/opcache/tests/jit/gh18113.phpt
Normal file
47
ext/opcache/tests/jit/gh18113.phpt
Normal file
@@ -0,0 +1,47 @@
|
||||
--TEST--
|
||||
GH-18113 (stack-buffer-overflow ext/opcache/jit/ir/ir_sccp.c)
|
||||
--EXTENSIONS--
|
||||
opcache
|
||||
--INI--
|
||||
opcache.jit=1205
|
||||
--FILE--
|
||||
<?php
|
||||
function lookup($s){
|
||||
switch($fusion){
|
||||
case 1: return 1;
|
||||
case 4: return 4;
|
||||
case 5: return 5;
|
||||
case 14: return 14;
|
||||
case 15: return 15;
|
||||
case 488: return 488;
|
||||
case 489: return 489;
|
||||
case 490: return 490;
|
||||
case 491: return 491;
|
||||
case 492: return 492;
|
||||
case 493: return 493;
|
||||
case 494: return 494;
|
||||
case 495: return 495;
|
||||
case 496: return 496;
|
||||
case 497: return 497;
|
||||
case 498: return 498;
|
||||
case 499: return 499;
|
||||
case 500: return 500;
|
||||
case 501: return 501;
|
||||
case 502: return 502;
|
||||
case 503: return 503;
|
||||
case 504: return 504;
|
||||
case 505: return 505;
|
||||
case 506: return 506;
|
||||
case 507: return 507;
|
||||
case 508: return 508;
|
||||
case 509: return 509;
|
||||
case 510: return 510;
|
||||
case 511: return 511;
|
||||
case 512: return 512;
|
||||
case 513: return 513;
|
||||
};
|
||||
}
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
Done
|
||||
Reference in New Issue
Block a user