php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63403 Segmentation fault with preg_match
Submitted: 2012-10-31 06:44 UTC Modified: 2012-11-01 03:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: to dot yashin at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.3.18 OS: linux ubuntu
Private report: No CVE-ID: None
 [2012-10-31 06:44 UTC] to dot yashin at gmail dot com
Description:
------------
reproduced on:
php 5.3.10
php 5.4.6

Test script:
---------------
$text = file_get_contents('http://dl.dropbox.com/u/31119503/php_segfault/data.txt');
preg_match('/(?:^.*$\n*)+/mx', $text);

Expected result:
----------------
preg_match return false

Actual result:
--------------
Segmentation fault (core dumped)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-01 03:43 UTC] laruence@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

stack overflow, see #45735
 [2012-11-01 03:43 UTC] laruence@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 22:01:32 2024 UTC