[php-src] PR #16418: Fix GH-16411: gmp_export() can cause overflow

From: Date: Sun, 13 Oct 2024 17:14:43 +0000
Subject: [php-src] PR #16418: Fix GH-16411: gmp_export() can cause overflow
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29207@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16418 Author: cmb69 We need not only to avoid the signed overflow while calculating bits_per_word (reported issue), but also the unsigned overflow when calculating count. While the former has a fixed threshold, the latter does not, since it also depends on the size in base 2. Thus we use a somewhat unconventional error message.

« previous php.git-pulls (#29207) next »