[GIT-PULLS] [php-src] PR #23415: Fix heap over-read in cli_get_prompt() for empty cli.prompt
[email protected] (iliaal)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <ntDSH1ZKN6CgA7cYJxfCCmPUCXlFBLKWUc9Z8BSdFpw@main.internal.php.net> |
Pull Request: https://github.com/php/php-src/pull/23415 Author: iliaal cli_get_prompt() parsed cli.prompt with a do-while, so the empty string executed the body on the terminator and scanned heap past it. Use a while loop and return the interned empty string when nothing was appended.