Grokbase Groups PHP php-cvs May 2016
FAQ
Commit: d29bd582a8cc28e9288b441e269d98f4f28da77d
Author: Xinchen Hui <laruence@gmail.com> Sat, 28 May 2016 16:12:10 +0800
Parents: 58302192b79440bf8049dd72ebe1953990bb19bb
Branches: PHP-7.0 master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d29bd582a8cc28e9288b441e269d98f4f28da77d

Log:
Added NEWS Entry

Changed paths:
   M NEWS
   D Zend/tests/bug72221.phpt
   A ext/standard/tests/streams/bug72221.phpt


Diff:
diff --git a/NEWS b/NEWS
index d177abe..69ae578 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP NEWS
  ?? ??? 2016 PHP 7.0.8

  - Core:
+ . Fixed bug #72221 (segfault, past-the-end access). (Lauri Kenttä)
    . Fixed bug #72218 (If host name cannot be resolved then PHP 7 crashes).
      (Esminis at esminis dot lt)

diff --git a/Zend/tests/bug72221.phpt b/Zend/tests/bug72221.phpt
deleted file mode 100644
index 8f30099..0000000
--- a/Zend/tests/bug72221.phpt
+++ /dev/null
@@ -1,11 +0,0 @@
---TEST--
-Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex)
---FILE--
-<?php
-$fp = fopen("php://memory", "r+");
-fwrite($fp, str_repeat("baad", 1024*1024));
-rewind($fp);
-stream_get_line($fp, 1024*1024*2, "aaaa");
-echo "Done\n";
---EXPECT--
-Done
diff --git a/ext/standard/tests/streams/bug72221.phpt b/ext/standard/tests/streams/bug72221.phpt
new file mode 100644
index 0000000..8f30099
--- /dev/null
+++ b/ext/standard/tests/streams/bug72221.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex)
+--FILE--
+<?php
+$fp = fopen("php://memory", "r+");
+fwrite($fp, str_repeat("baad", 1024*1024));
+rewind($fp);
+stream_get_line($fp, 1024*1024*2, "aaaa");
+echo "Done\n";
+--EXPECT--
+Done

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedMay 28, '16 at 8:12a
activeMay 28, '16 at 8:12a
posts1
users1
websitephp.net

1 user in discussion

Xinchen Hui: 1 post

People

Translate

site design / logo © 2019 Grokbase