Bug #81419 [Fbk->Opn]: A memory leak in accel_preload()

From: Date: Sun, 17 Oct 2021 12:38:12 +0000
Subject: Bug #81419 [Fbk->Opn]: A memory leak in accel_preload()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237242@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81419&edit=1 ID: 81419 User updated by: dinghao dot liu at zju dot edu dot cn Reported by: dinghao dot liu at zju dot edu dot cn Summary: A memory leak in accel_preload() -Status: Feedback +Status: Open Type: Bug Package: opcache Operating System: Any PHP Version: 8.0.10 Block user comment: N Private report: N New Comment: Sorry, currently I have no PoC for this bug. The memleak is mainly analyzed theoretically. Previous Comments: ------------------------------------------------------------------------ [2021-10-15 15:20:01] felipe@php.net Hello, Can you provide a proper .php test case? ------------------------------------------------------------------------ [2021-09-06 08:23:28] dinghao dot liu at zju dot edu dot cn Description: ------------ There is a suspected memleak issue in ext/opcache/ZendAccelerator.c. In function accel_preload(), variable 'preload_scripts' is allocated at line 4453 through emalloc(). All paths after this allocation will execute the cleanup against this variable at 'finish' label, except for one error handling path on failure of preload_optimize() at line 4687, which may cause a memleak. This bug is suggested by a static analysis tool, please advise. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81419&edit=1

« previous php.bugs (#237242) next »