php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80007 Potential type confusion in unixtojd() parameter parsing
Submitted: 2020-08-22 10:01 UTC Modified: 2020-08-22 10:01 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: Calendar related
PHP Version: 7.3Git-2020-08-22 (Git) OS: *
Private report: No CVE-ID: None
 [2020-08-22 10:01 UTC] cmb@php.net
Description:
------------
The unixtojd() parameter parsing assumes that `time_t` is the same
as `zend_long`, but that is not necessarily given.  POSIX only
mandates that "time_t shall be an integer type."[1]

[1] <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html>


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-22 10:01 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-08-22 10:02 UTC] cmb@php.net
The following pull request has been associated:

Patch Name: Fix unixtojd long parameter parsing
On GitHub:  https://github.com/php/php-src/pull/6033
Patch:      https://github.com/php/php-src/pull/6033.patch
 [2020-08-22 10:35 UTC] cmb@php.net
Automatic comment on behalf of apostnikov@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b2a33ab06bab4f2d79634e294632bebebd04acdb
Log: Fix #80007: Potential type confusion in unixtojd() parameter parsing
 [2020-08-22 10:35 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 21 07:01:23 2020 UTC