php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68814 Unchecked return value in phar_object.c
Submitted: 2015-01-12 16:22 UTC Modified: 2015-01-19 04:39 UTC
From: bugreports at internot dot info Assigned: laruence (profile)
Status: Closed Package: PHAR related
PHP Version: master-Git-2015-01-12 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugreports at internot dot info
New email:
PHP Version: OS:

 

 [2015-01-12 16:22 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/phar/phar_object.c:

2069        oldname = zend_memrchr(phar->fname, '/', phar->fname_len);

zend_memrchr() may return NULL, but it is not checked for NULL, as it is everywhere else it is used.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-18 04:21 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ad32e033274ea49d05164418241946d2f1798894
Log: Fixed bug #68814 (Unchecked return value)
 [2015-01-18 04:21 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2015-01-19 04:39 UTC] stas@php.net
-Summary: Unchecked return value +Summary: Unchecked return value in phar_object.c -Assigned To: +Assigned To: laruence
 [2016-07-20 11:39 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ad32e033274ea49d05164418241946d2f1798894
Log: Fixed bug #68814 (Unchecked return value)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 11:01:33 2024 UTC