[php-src] Issue #8016: Unify `integer` range across platforms

From: Date: Mon, 14 Feb 2022 18:47:15 +0000
Subject: [php-src] Issue #8016: Unify `integer` range across platforms
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239783@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8016 Comment Author: mvorisek > I expect a lot of code expecting size_t offset to potentically > overflow if sizeof(zend_long) > sizeof(size_t) without more work > (e.g. emalloc, malloc, helper > functions using those, native C library functions, etc.) This can be easily solved by a macro/function and assertion that the input is no bigger than max. alloved value of size_t. > The last time changes affecting 32-bit support was brought up, @nikic mentioned it would be a > good idea to see if php was commonly used with 32-bit systems were. My usecase is IoT on embedded 32-bit ARM. I belive such usage is hard to be tracked by any stat as the php-src is usually downloaded/compiled once and distributed on many devices by copying.

« previous php.bugs (#239783) next »