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
{{ message }}
Repository navigation
Double free of init_file in phpdbg_prompt.c #12962
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:
Activity
ndossche commentedon Dec 17, 2023
Thanks for the report. This is a true positive as I was able to create a reproducer. PR coming soon.
Fix phpGH-12962: Double free of init_file in phpdbg_prompt.c
Fix GH-12962: Double free of init_file in phpdbg_prompt.c
Merge branch 'PHP-8.2' into PHP-8.3
Merge branch 'PHP-8.3'