Bug #80007 [PATCH]: Potential type confusion in unixtojd() parameter parsing

From: Date: Sat, 22 Aug 2020 10:02:05 +0000
Subject: Bug #80007 [PATCH]: Potential type confusion in unixtojd() parameter parsing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228707@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 Patch added by: cmb@php.net Reported by: cmb@php.net Summary: Potential type confusion in unixtojd() parameter parsing Status: Assigned 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: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#228707) next »