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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

Pull requests:

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC