Bug #80007 [Asn->Csd]: Potential type confusion in unixtojd() parameter parsing

From: Date: Sat, 22 Aug 2020 10:35:40 +0000
Subject: Bug #80007 [Asn->Csd]: Potential type confusion in unixtojd() parameter parsing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228708@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80007&edit=1 ID: 80007 Updated by: cmb@php.net Reported by: cmb@php.net Summary: Potential type confusion in unixtojd() parameter parsing -Status: Assigned +Status: Closed Type: Bug Package: Calendar related Operating System: * PHP Version: 7.3Git-2020-08-22 (Git) Assigned To: cmb Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2020-08-22 10:02:05] 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:01:37] 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> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80007&edit=1

« previous php.bugs (#228708) next »