com php-src: Merge branch 'PHP-7.2' into PHP-7.3: ext/pcre/tests/bug75457.phpt

From: Date: Tue, 27 Aug 2019 21:15:50 +0000
Subject: com php-src: Merge branch 'PHP-7.2' into PHP-7.3: ext/pcre/tests/bug75457.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108092@lists.php.net to get a copy of this message
Commit: 510ca4a126e61ac19e0c71979b140782e4767d64 Author: Stanislav Malyshev <stas@php.net> Sun, 25 Aug 2019 19:21:04 -0700 Committer: Christoph M. Becker <cmbecker69@gmx.de> Tue, 27 Aug 2019 23:15:50 +0200 Parents: c4cfab8f8425d01cb8beba604d8a3c9f0ec611b7 Branches: PHP-7.3.9 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=510ca4a126e61ac19e0c71979b140782e4767d64 Log: Merge branch 'PHP-7..2' into PHP-7.3 * PHP-7.2: Fix #75457: heap-use-after-free in php7.0.25 (cherry picked from commit 5d25ebb0dd30cdf4e8c7e83d1f0788e8fdb1c4ef) Bugs: https://bugs.php.net/75457 Changed paths: A ext/pcre/tests/bug75457.phpt Diff: diff --git a/ext/pcre/tests/bug75457.phpt b/ext/pcre/tests/bug75457.phpt new file mode 100644 index 0000000..571a4bd --- /dev/null +++ b/ext/pcre/tests/bug75457.phpt @@ -0,0 +1,10 @@ +--TEST-- +Bug #75457 (heap-use-after-free in php7.0.25) +--FILE-- +<?php +$pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/"; +var_dump(preg_match($pattern, "hello")); +?> +--EXPECTF-- +Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset %d in %sbug75457.php on line %d +bool(false)

« previous php.cvs (#108092) next »