You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pointer init_file is passed to a function free at phpdbg_prompt.c:368 by calling function after the referenced memory was deallocated at phpdbg_prompt.c:333 by passing as first parameter to function phpdbg_try_file_init at phpdbg_prompt.c:367.
In line 367 init_file is passed to function phpdbg_try_file_init and variable free_init (last parameter) is set to 1:
* PHP-8.2:
Fix getting the address of an uninitialized property of a SimpleXMLElement resulting in a crash
FixGH-12962: Double free of init_file in phpdbg_prompt.c
* PHP-8.3:
FixGH-12929: SimpleXMLElement with stream_wrapper_register can segfault
Fix getting the address of an uninitialized property of a SimpleXMLElement resulting in a crash
FixGH-12962: Double free of init_file in phpdbg_prompt.c
Description
Pointer
init_file
is passed to a functionfree
at phpdbg_prompt.c:368 by calling function after the referenced memory was deallocated at phpdbg_prompt.c:333 by passing as first parameter to functionphpdbg_try_file_init
at phpdbg_prompt.c:367.init_file
is passed to functionphpdbg_try_file_init
and variablefree_init
(last parameter) is set to 1:php-src/sapi/phpdbg/phpdbg_prompt.c
Lines 367 to 368 in 38bd305
init_file
is freed in functionphpdbg_try_file_init
:php-src/sapi/phpdbg/phpdbg_prompt.c
Lines 332 to 334 in 38bd305
init_file
is freed again in line 368:php-src/sapi/phpdbg/phpdbg_prompt.c
Lines 367 to 368 in 38bd305
This is probably a small typo, as there is a counterexample here (
free_init
is set to 0):php-src/sapi/phpdbg/phpdbg_prompt.c
Lines 348 to 349 in 38bd305
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Burke.
PHP Version
PHP 8.2.3
Operating System
No response
The text was updated successfully, but these errors were encountered: