Bug #60261 [Opn->Csd]: phar dos null pointer
| From: | felipe@php.net | Date: | Fri, 11 Nov 2011 21:41:01 +0000 |
| Subject: | Bug #60261 [Opn->Csd]: phar dos null pointer | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165060@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60261&edit=1
ID: 60261
Updated by: felipe@php.net
Reported by: max at cxib dot net
Summary: phar dos null pointer
-Status: Open
+Status: Closed
Type: Bug
Package: PHAR related
Operating System: linux
PHP Version: 5.4.0RC1
-Assigned To:
+Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-11-11 21:39:03] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=319075
Log: - Fixed bug #60261 (phar dos null pointer)
------------------------------------------------------------------------
[2011-11-11 11:50:42] pajoye@php.net
fix category
------------------------------------------------------------------------
[2011-11-11 11:42:44] max at cxib dot net
Description:
------------
<?
/*
1213 }
1214
1215 zend_replace_error_handling(EH_THROW, spl_ce_RuntimeException, &error_handling TSRMLS_CC);
1216
1217 #if defined(PHP_WIN32) || HAVE_SYMLINK
1218 if (!IS_ABSOLUTE_PATH(intern->file_name, intern->file_name_len)) { <=CRASH HERE
1219 char expanded_path[MAXPATHLEN];
1220
(gdb) print intern->file_name
$3 = 0x0
where
#define IS_ABSOLUTE_PATH(path, len) \
(len >= 2 && ((isalpha(path[0]) && path[1] == ':') ||
IS_UNC_PATH(path, len)))
*/
$nx = new Phar();
$nx->getLinkTarget();
?>
Test script:
---------------
$nx = new Phar();
$nx->getLinkTarget();
or PharData()
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60261&edit=1