php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68809 Unchecked return value in phar/tar.c
Submitted: 2015-01-12 11:11 UTC Modified: 2015-01-19 04:38 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
 [2015-01-12 11:11 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/phar/tar.c:

484                newentry = zend_hash_str_add_mem(&myphar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeof(phar_entry_info));

'newentry' is not checked if it's NULL, as it is does every other time zend_hash_str_add_mem() is used.

Thanks


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=89beb12fefdfe9a9b56f1db9027d9bfaeb895b31
Log: Fixed bug #68809 (Unchecked return value)
 [2015-01-18 04:21 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2015-01-19 04:38 UTC] stas@php.net
-Summary: Unchecked return value +Summary: Unchecked return value in phar/tar.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=89beb12fefdfe9a9b56f1db9027d9bfaeb895b31
Log: Fixed bug #68809 (Unchecked return value)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 06:01:32 2024 UTC