Bug #80002 [PATCH]: calc free space for new interned string is wrong
Edit report at https://bugs.php.net/bug.php?id=80002&edit=1
ID: 80002
Patch added by: cmb@php.net
Reported by: t-matsuno at colopl dot co dot jp
Summary: calc free space for new interned string is wrong
Status: Assigned
Type: Bug
Package: opcache
PHP Version: PHP 7.3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix #80002: calc free space for new interned string is wrong
On GitHub: https://github.com/php/php-src/pull/6024
Patch: https://github.com/php/php-src/pull/6024.patch
Previous Comments:
------------------------------------------------------------------------
[2020-08-20 09:23:56] cmb@php.net
Thanks for reporting, and the patch!
------------------------------------------------------------------------
[2020-08-20 09:09:48] t-matsuno at colopl dot co dot jp
Description:
------------
Hello,
Since I got "Interned string buffer overflow" warning with relatively large
opcache.interned_strings_buffer, I looked ZendAccelerator and tried some tests.
Through the series of tests, it seems that the calculation for free space to keep interned strings
is wrong and it derives the 1/32 smaller value than the actual free space and it causes the overflow
warning for some big strings even if there is enough free space.
I hope you look at it.
This happens in PHP7.3 and newer.
Regards,
Takeki.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80002&edit=1
Thread (6 messages)